courant.py: add docstring to pingPackage
courant.py: handle redirects, too