def keysubst(arguments, keydict):
 ok = keydict.values()
 for k in arguments.keys():
  if keydict.has_key(k):
   v = arguments[k]
   del arguments[k]
   arguments[keydict[k]] = v
  elif ((k != '----') and (k not in ok)):
   raise TypeError, ('Unknown keyword argument: %s' % k)

def keysubst ( arguments , keydict ) : ok = keydict . values ( ) for k in arguments . keys ( ) : if keydict . has_key ( k ) : v = arguments [ k ] del arguments [ k ] arguments [ keydict [ k ] ] = v elif ( ( k != '----' ) and ( k not in ok ) ) : raise TypeError , ( 'Unknown keyword argument: %s' % k )
replace long name keys by their 4-char counterparts .