def _get_type(e):
 try:
  return e.__class__
 except AttributeError:
  return type(e)

def _get_type ( e ) : try : return e . __class__ except AttributeError : return type ( e )
returns the type associated with handling xml objects from this etree interface .