def _fix_types(t):
 try:
  _ = t[0]
  t = list(t)
 except:
  t = [t]
 ok = False
 for tt in t:
  if _issubclass(tt, nxm_entry):
   ok = True
   break
 if (not ok):
  t.append(nxm_entry)
 return t

def _fix_types ( t ) : try : _ = t [ 0 ] t = list ( t ) except : t = [ t ] ok = False for tt in t : if _issubclass ( tt , nxm_entry ) : ok = True break if ( not ok ) : t . append ( nxm_entry ) return t
helper for _make_nxm normalizes lists of superclasses .