* Attempt fixing check_config script test flakiness * Fix logging * remove cleanup as Python will exit * Make sure we don't enqueue magicmocks * Lint * Reinstate cleanup as it broke secret tests