Typeerror Numpy Types Float64dtype Object Is Not An Instance