python3 support

https://github.com/CyanogenMod/hudson/commit/3fd6e4224678042ec58254f11df9a729b9affb7b