pub async fn handle_python_return<F: Future<Output = PyResult<R>>, R: ToPyObject>(
    return_fun: PyObject,
    f: F
)