Flip conditional sides of helper definitions (no semantic change).
Explicit string check in Job constructor.
Enable the most modern Python syntax.
Fix PEP8 complaints.