# Would this do the trick? let ret = py.import("")?.call_method0("")?; let result: f64 = ret.extract()?;