a small job manager in python