title: Matrix manipulation in python
body: <p>I'm a beginner to coding and have been trying to operate on matrices for a bit, but got stuck at a point. 
  I've got a 224x224 matrix of integers and need to apply a function over 8x8 patches of the matrix, individually. (28 patches, each 8x8)
  How do I do this?</p>