Add runtime.py - not used now, but good to put here