extracted run_rests into a method and made script setting a list
adding pypi badges