update py2 to py3