Operations With Numpy Array Shape