Python Check If Object Is Numpy Array To Bytes