pub fn extract_with_context<'py, T>( value: &Bound<'py, PyAny>, context: &str, attr_name: &str, ) -> PyResult<T>where T: FromPyObject<'py>,
Extract a value from PyAny with better error messaging