Restructured and prepared for packaging
add support for python3