fixed decode error for python 3