Python Numpy Change Array Dimensions Matlab Tutorial Reinforcement