Run script cleanups

Some minor changes to get run.py working as a script with sample parameters again.

I will start on some more extensive refactoring to use tracpy as a server connected to a web frontend.