Kathleen's Python utilities.