Python Typeerror Numpy Float64 Object Oriented Principles C