Python Check If Object Is Numpy A Framework