Another attempt at making it run on python 3