Add python3 support
Fix work with python 2
Reformat setup.py
Bump version to 4