starting to make compatible with python2 and python3