Support python 3

Merged Sebastien Ponce requested to merge sponce_python2fixes into master

Merge request reports