python3 fixes
Merge pull request #29 from gentoo/mfix

python 3 fixes