Update electronCompare.py

modification for release export. Needed by histos