Lots of pylint improvements.