Async While Loop Python Definition Functional Testing