My python utility functions