Add docstrings to runtime_base.py