pub fn extract_struct_field<'py, T>( obj: &Bound<'py, PyAny>, struct_name: &str, field_name: &str, ) -> PyResult<T>where T: FromPyObject<'py>,