refactored jobs.py into a python library + cosmetic changes
Merge pull request #1 from reinferio/library

refactored jobs.py into a python library + cosmetic changes