fix deactivation of auto-complete in python-mode buffers