Swig/Python bindings: Fixed pointer bug