electrode.py: cleanup