Wrap your asynchronous python functions so they behave like synchronous function.