pub fn py_list_to_contracts(obj: &Bound<'_, PyAny>) -> PyResult<Vec<Contract>>
Convert a Python list of objects to a vector of Rust Contracts.