used the fix for python 3 provided by @jaimeMF