Merge pull request #1 from julianhille/feature/python3_compability

Fixed two little issues with python3 compatibility.
latest commit 34be55b20b
@tsileo authored