Add 'not in' test to tools/hacking.py

N901: Use the 'not in' operator for collection membership evaluation

Change-Id: Ie156359d85dd089d68eb214f1569f27577800e17
Merge "Add 'not in' test to tools/hacking.py"