fix. log formatting.

Change-Id: I3462fce5ce58732feb49f48d266e65bde3a5d683
mod. condition on which jobs are processed in main loop / pep 8 / logging.

Change-Id: Ic3fe864236e9bdaf071239d4244cb0017aae0d1e