def getUserContact(master, contact_types, uid):
 d = master.db.users.getUser(uid)
 d.addCallback(_extractContact, contact_types, uid)
 return d

def getUserContact ( master , contact_types , uid ) : d = master . db . users . getUser ( uid ) d . addCallback ( _extractContact , contact_types , uid ) return d
this is a simple getter function that returns a user attribute that matches the contact_types argument .