Bug fix in Python-bindings.