factory.py: fix run_script()
tests/test_factory_specification.py: add test for run_script()
Merge branch 'master' of github.com:Friz-zy/factory