Cleaned up some of the code

I found the source code of autowikibot to be. . . less than stellar. So I made some simple cleanups, including a transition to the PEP8 standard (which includes 4-space tabs). Feel free to reject this if you do not want to follow PEP8, and I'll make the required adjustments.