Fix Pylint checker regex and tests.

By default Pylint doesn't show error codes, just types (C, E, W,
etc.). Codes are turned on in the pylintrc for edx-platform, though,
so we should be able to handle them if they're present.