Fix PEP H902 (Use the 'not in' operator)

Change-Id: Ic3dec990d2fe43dd8841aadb7b87e8f26c2d0338
Merge "Fix PEP H902 (Use the 'not in' operator)"