def getTypeURIs(service_element):
 return [type_element.text for type_element in service_element.findall(type_tag)]

def getTypeURIs ( service_element ) : return [ type_element . text for type_element in service_element . findall ( type_tag ) ]
given a service element .