Fixes most of the pylint complaints