def _match_section(section, match):
<EOL>for i in range(<NUM_LIT:5>):<EOL><INDENT>if i >= len(section):<EOL><INDENT>return None<EOL><DEDENT>if isinstance(section[i], StringType) and section[i] in match:<EOL><INDENT>return match[section[i]]<EOL><DEDENT><DEDENT>return None<EOL>
checks whether the `type` of section is in the `match` dictionary

    Works around the unknown ordering of s-expressions in each section.
    For instance, the `type` is the 3-rd one in for CellBodies
        ("CellBody"
         (Color Yellow)
         (CellBody)
         (Set "cell10")
        )

    Returns:
        value associated with match[section_type], None if no match