Small framework in python to run program in parallel