Try to fix python3 compatibility ...

Work in progress ...
Merge branch 'master' of https://github.com/pwman3/pwman3