Utilities in python