Enable electric-layout-mode only with python-mode

The problem with electric-layout-mode is that it's global, it works
great with python-mode, but it may also cause some issues with other
major mode, see #694