decode is needed in python 3 as well