tox: add support for pylint

This also fixes a bug detected by pylint.

Change-Id: I378c5766d375d72db3d58581bcee6b3d02c0352b
Merge "tox: add support for pylint"