fix error on py3 syntax