A nice tip if you work with python under vi, use this vimrc config file.
http://svn.python.org/projects/python/trunk/Misc/Vim/vimrc
you can just copy it to your home directory
wget http://svn.python.org/projects/python/trunk/Misc/Vim/vimrc ~/python_vimrc
you can start vi with vi -u ~/python_vimrc
Or make it your default .vimrc you will end with nice syntax highlighting