pub fn try_string(value: &PyAny) -> PyResult<Option<Literal<String>>>