update for python-mode hooks