Python Check If Object Is Numpy Array