Python Test If Object Is Numpy Array