Refactor stager.py

lwr/lwr_client/stager.py:297:1: C901 'finish_job' is too complex (9)
Refactor to test/check.py reduce complexity.

Fix this: test/check.py:18:1: C901 'run' is too complex (9). Set new upper bound to 8.