pub fn exec_with_locals( code: &str, locals: &HashMap<String, Py<PyAny>>, ) -> Result<()>
Execute Python code with local variables