def _to_list(obj):
 ret = {}
 for attr in __attrs:
  ret[attr] = obj.__dict__[attr]
 return ret

def _to_list ( obj ) : ret = { } for attr in __attrs : ret [ attr ] = obj . __dict__ [ attr ] return ret
convert snetinfo object to list .