Setting indentation to use 4 space indents can be done by adding the following lines into your .vimrc (or _vimrc on Windows):
set expandtab set ts=4 set shiftwidth=4
Or put this line in your files:
# vim: shiftwidth=4 tabstop=4 expandtab
Contributed by: PaulBoddie - 01 Nov 2001 (modified 21 Nov 2001, 04 Dec 2001) MikeOrr - 20 Jun 2002
Unfortunately, it is difficult to deal with the Webware style of using tabs for indentation instead of spaces. You can set Options>Advanced>Emacs>Editing>Basics>Indent Tabs Mode... (turn it on). Unfortunately when you edit code from any other source of Python code it will insert tabs instead of spaces, causing great harm, since everyone else uses spaces, not tabs.
Note: I've found that if you don't set the tab width to 4 (i.e., leave it at 8) it will auto-detect tabs vs. spaces correctly.
One of the nice features is editing files on your server over FTP, by opening /username@servername.com:/path/to/files/servlet.py, or even over SSH using TRAMP