SWIG fixes, Python example update