code: def getAllKws(self):
          
          kws_ele = []
          kws_bl = []
          for ele in self.all_elements:
              if ele == '_prefixstr' or ele == '_epics':
                  continue
              elif self.getElementType(ele).lower() == u'beamline':
                  kws_bl.append(ele)
              else:
                  kws_ele.append(ele)
  
          return tuple((kws_ele, kws_bl))
docs: extract all keywords into two categories
  
              kws_ele: magnetic elements
              kws_bl: beamline elements
  
              return (kws_ele, kws_bl)