def extract_want_line_capabilities(text):
 split_text = text.rstrip().split(' ')
 if (len(split_text) < 3):
  return (text, [])
 return (' '.join(split_text[:2]), split_text[2:])

def extract_want_line_capabilities ( text ) : split_text = text . rstrip ( ) . split ( ' ' ) if ( len ( split_text ) < 3 ) : return ( text , [ ] ) return ( ' ' . join ( split_text [ : 2 ] ) , split_text [ 2 : ] )
extract a capabilities list from a want line .