working with py2/py3