Python task queue