Minor fixes to swig python interface.