Approaching python3 compatibility

--HG--
branch : trunk
9 files changed