Fixed PEP 8 and pylint complaints.