better python3 input handling
Merge pull request #49 from cgtx/master

better python3 input handling