Auto detect the right mode for header files.
Add support for Python regexp search and replace.