added is_py2
py2 check
is_py2 check