Decode output string to be compatible with Python 3