Python 3 decode reversion