Made all the view tests pass and cleaned up some pylint violations.