Clean up warnings, PEP8 violations.