Python API: allow for loading subprograms from files