def _try_lookup(table, value, default=''):
 try:
  string = table[value]
 except KeyError:
  string = default
 return string

def _try_lookup ( table , value , default = '' ) : try : string = table [ value ] except KeyError : string = default return string
try to get a string from the lookup table .