I think this should fix stuff for python3... @brianr