Fix python3 decoding