Revamped Python bindings that use SWIG