Simplify logic of python-mode.

* New upstream release has better python detection logic.