changes to run as python 3