pep8 style.

Also removed a redundant import of sleep..