python begin as a feature of swig 3.0. changed to python code and move to beginning