add command line to automator.py. TODO: add template function