Split out Docker log handling better
PEP8 fix