pep8 and pyflakes checked. Fixed.