fix pep8 error E713 "test for membership should be 'not in'"

cleaned up all occurrences
using an ad-hoc helper script with manual check for every replacement

Change-Id: Ib4eca94b342a340efcffdcdaf284808727817778