more python3 fixes
used decode instead of unicode()