Bring code closer to PEP8.

The tool pep8(1) revealed several PEP8 violations, most of which are
fixed in this commit.
Remove useless statement.