Python Check If Object Is Numpy Array Reshape