Backport of cfg-viewer.py from CMSSW_7_1_0_pre1.

This backport will allow to run CMSSW_6_2_X_SLHC integration tests.