This code did not work for Python 2.x becaus I was not importing from future. While I was altering all the files I updated the header to include license information.