factory.py: refactoring run_script(), push()