Tabs to spaces in Python files

Rebased version of my earlier pull-request.

I threw out the removal of trailing spaces, since it's not important.  Fixing up leading tabs in Python files can actually prevent some bugs.