How do I write a sequence of promises in Python? How do I write a sequence of promises in Python? python-3.x python-3.x