use string.decode() for python 3 compatibility