Sometimes you won't need that other half of the list.For example:
import sysfrom itertools import ifiltertrustedPeople = sys.argv[1].split(',')newName = sys.argv[2]myFriends = ifilter(lambda x: x.startswith('Shi'), trustedPeople)print '%s is %smy friend.' % (newName, newName not in myFriends 'not ' or '')