Don't run pylint if no Python files have changed

We shouldn't try to run `pylint` if we aren't touching any `.py` files.