def findObj(regex):
 allObjs = get_all_objects()
 objs = []
 r = re.compile(regex)
 for i in allObjs:
  obj = allObjs[i]
  if r.search(typeStr(obj)):
   objs.append(obj)
 return objs

def findObj ( regex ) : allObjs = get_all_objects ( ) objs = [ ] r = re . compile ( regex ) for i in allObjs : obj = allObjs [ i ] if r . search ( typeStr ( obj ) ) : objs . append ( obj ) return objs
return a list of objects whose typestr matches regex .