<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def find_sdl_attrs(prefix: str) -> Iterator[Tuple[str, Any]]: """Return names and values from `tcod.lib`. `prefix` is used to filter out which names to copy. """

    from tcod._libtcod import lib

    if prefix.startswith("SDL_"):
        name_starts_at = 4
    elif prefix.startswith("SDL"):
        name_starts_at = 3
    else:
        name_starts_at = 0
    for attr in dir(lib):
        if attr.startswith(prefix):
            yield attr[name_starts_at:], getattr(lib, attr)