Python Typeerror Numpy Float64 Object Reference