Moved discover_python_files outside to increase testability.