cleanup by removal of unused imports

Hello Robert,

I have run 'pyflakes' on the patchbot sources and it has found several unused import statements. I propose to remove them.

By the way, it has also found several other problems, including : 
- an undefined variable 'base' in serve.py
- and a double meaning of git_commit in trac.py

I have not taken care of these.