pylint: W0631: Using possibly undefined loop variable

Change-Id: I99cf5e75345e0a4621dcaefae9ab82105b18dd46
pylint: W0101: Unreachable code

Change-Id: I55147c262d3053fd65be6013eef022a3826adbc0
pylint: W0103: Dangerous default value [] as argument

Change-Id: Ia02c59c2a48238e78fae3438309a43b334deb94f