compatibility py2.7