Python code shared across terasaur components