useful.py contains generally useful functions on common Python structures