Fix some more pylint warnings

Fix some more warnings from pylint.

Move check_output into common.py and use this instead of local copy.

Change-Id: Ifc2079e8d4302d313cfe438d11e4601482637764
Merge "Fix some more pylint warnings"