vim + Python

VimBelow are my current .vimrc settings which, I find, are particularly pleasant for hacking Python.
syntax on
filetype indent plugin on
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
set autoindent
set number
" a useful addition to Python source files is the following:
" vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
" this requires the 'set modeline' option in vimrc
" abbreviated commands -- :set ts=8 et sw=4 sts=4
"
" Python configuration below
" Thanks to http://www.vex.net/~x/python_and_vim.html
" Configure vim to smart indent based on the following Python keywords
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
" Configure vim to trim trailing white space
autocmd BufWritePre *.py normal m':%s/\s\+$//e''