python: Start fixing some Python 3 issues.