bugfix --- fix python3 incompatibilities