Force syntax sync from the beginning of the file for Python and shell.

It seems that often things get out of sync, and it's quite disturbing.