* lisp/progmodes/python.el (auto-mode-alist): Add .pyi. (Bug#27847)