bugfix in python.py

== should be =
It actually might be better to use number._isinteger()