add python3 compatibility
add python3 compatibility, use separated _compat.py
python3 compatibility: fix gen_commands, print -> print()
Merge pull request #2 from vaxXxa/master

Add python3 compatibility