python3 compatiblity based on 2to3 tool
See merge request !163 (merged)
(cherry picked from commit 031cdd2c)
2a2da253 python3 compatiblity based on 2to3 tool