py3 compatibilty

Found some minor changes to fix py3 compatibilty. They need to be tested before merging.

Merge request reports

Loading