Async Map Js Function Composition In Python