Adding Python3 support

--HG--
extra : rebase_source : eb1da27d678982b5b984d1a968c016a53c2cbd1f