Python Typeerror Numpy Float64 Object Is An Instance