Making Function Async Python Code