Python Typeerror Numpy Float64 To Integer Function