fix for util breaking in python 3+