smf = [{'name':'Bernard','age':7},{'name':'George','age':4},{'name':'Reginald','age':6}]
def names(d):
for i in d:
for key, value in i.iteritems():
if key == 'name':
yield value
In [5]: 'Bernard' in names(smf)
Out[5]: True
In [6]: 'Bernardadf' in names(smf)
Out[6]: False