py3k syntax fix