Work-around bad electric-indent-mode behavior in python-mode.