converted python3 stuff to python2