pub fn python_error(hook_name: &str, reason: impl Display) -> String
Format error for Python-specific failures