added SWIG stuff for Python