Backport of cfg-viewer.py from CMSSW_7_1_0_pre1.

Needed for automated tests.