Add tests of python par_loop