pub fn future_into_py<F, T>( py: Python<'_>, fut: F, ) -> PyResult<Bound<'_, PyAny>>where F: Future<Output = PyResult<T>> + Send + 'static, T: for<'py> IntoPyObject<'py>,