Removing python-mode is not enough to solve the issue, "purge" must be used to ensure that configuration files are also removed, as suggested by Brad Crittenden.
The following worked for me:
% sudo aptitude purge python-mode
However, this also removes pyrex-mode, as it depends on python-mode, so it seems that pyrex-mode cannot be used with emacs22.
Removing python-mode is not enough to solve the issue, "purge" must be used to ensure that configuration files are also removed, as suggested by Brad Crittenden.
The following worked for me:
% sudo aptitude purge python-mode
However, this also removes pyrex-mode, as it depends on python-mode, so it seems that pyrex-mode cannot be used with emacs22.