Skipping test task when not testing and workaround for permanent OSError.
Flake8 cleanup