Python utilities, tests and snippits