def class_abbrev(type):
 try:
  return long2short[type]
 except KeyError:
  return type

def class_abbrev ( type ) : try : return long2short [ type ] except KeyError : return type
abbreviate an ne class name .