Python Run Async Function In Thread