remove legacy and fix a few typos with the help of pylint
Authored by: zippybr 2011-08-16
Parent: [r7200]
Child: [r7202]