module/swig/python cleanup