Python Typeerror Numpy Float64 Object Does Not Name