Bugfix in Python binding