Updated the files to work with python3.