Created a Python 3 version of the script. Thank you based 2to3.