Various helpful Python utility classes and functions.