Fix python3 compatibility

Use integer division
Correct string join usage
Remove commented-out True/False checks
Merge pull request #1 from stevenschlansker/py3

Fix python3 compatibility