Fixed bug beampixel

Fixed bug due to wrong colling sequence for beginRun
Minor changes in .py file for tracking compatibility with new CMSSW release
Minor changes in indentation