Fix issue #7165 in _create_challenge_dirs(), attempt to fix pylint errors (#7568)