Make it built and packaged for python-3 version also and related fixes
make it buildable for python-3.3