fix syntax error for py3.2