Some python3 fixes.
Merge pull request #28 from asottile/python3

Some python3 fixes.