python background function
import threading
def my_inline_function(some_args):
# do some stuff
download_thread = threading.Thread(target=some_function, name="Downloader", args=some_args)
download_thread.start()
# continue doing stuff