autoload.py: script implementation, easier to understand and use. small fixes to workflow.py and main.py