Miscellaneous python tools.