def _process_caps(caps):
 return [x.strip().split() for x in caps.strip().split('\n')]

def _process_caps ( caps ) : return [ x . strip ( ) . split ( ) for x in caps . strip ( ) . split ( '\n' ) ]
process textual lists of curses caps into list of pairs .