collection of python utility functions