Python3 compat
Begin arcbot message
This merge request is automatically copied from !238 (merged) orginally made by @ellert
End arcbot message
Fixes BUGZ-3732.
Fixes build failures on Fedora Rawhide. See the bugzilla report for details on why porting to Python 3 fixes the build failures.