Cleaning up a bunch of pylint warinings.