pub fn py_list<T>(items: Vec<T>) -> PyList<T>
Helper function for list creation from Rust vectors (common in compiled code)