removes unused stuff.
now the base code conforms to pep8.