Fix for the float conversion bug in the python interface.
Fixes and additions to python examples.