decode fix for python3