Cleaned up PEP 8 references.
Finished logical tests.