Typeerror Numpy Arrayfunctiondispatcher Object Is Possibly Null