replace electric-pair-mode (too simplistic) with autopair for python programming