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