completed python3 - python2 conversion