Using the click package can help tidy up some of the path wrangling that's being done in the pstorm.py file. Otherwise perhaps look at the argparse add_subparsers command. I'm not sure that using exec() to call the script is the best idea.
from @chrisleaman 's JOSS review: openjournals/joss-reviews#2075 (comment)