An attempt at Python 3 compatabilitys