def _get_load_commands(lines):
    """yields each load command from the output of otool -l"""
    a = 1
    for ln, line in enumerate(lines):
        if line.startswith('Load command'):
            if a < ln:
                yield lines[a:ln]
            a = ln
    yield lines[a:]
