First run at Python3 compatibility and testing. This will probably fail.