Python Run Async Code In Sync Function