Javascript Create Async Function Python Parameters