Simple workqueue in python