conversion to python scripts + minor name fixes for CMSSW