Pylint fixes, closes Stanford-Online/edx-platform#4