fix python3 code structure
WHY...
Merge pull request #2 from spigwitmer/master

code restructure take two