Enables pylint for .py files in autotest.

1. Patch run_pylint so pylint understands autotest_lib imports.
2. Patches pylint to understand 'import common'
    An unused improt error is only thrown if we don't see an
    autotest_lib import in the same scope.
3. Refactors run_pylint to handle command line invocation with
   multiple arguments correctly.
4. Adds a presubmit hook so we run pylint for autotest checkis.
5. Adds a pylintrc file, which only checks unused imports for now.

TEST=ran run_pylint on all python files in client/
BUG=chromium-os:36890

Change-Id: Ic7b36c02474a454d1e5d254a3b21313fd2d8c745
Reviewed-on: https://gerrit.chromium.org/gerrit/39200
Reviewed-by: Scott Zawalski <scottz@chromium.org>
Commit-Queue: Prashanth Balasubramanian <beeps@chromium.org>
Tested-by: Prashanth Balasubramanian <beeps@chromium.org>
3 files changed