Call .decode only in python 3