def select(selector, obj):
parser = Parser(obj)<EOL>try:<EOL><INDENT>return parser.parse(selector)<EOL><DEDENT>except SelectorSyntaxError as e:<EOL><INDENT>log.exception(e)<EOL>return False<EOL><DEDENT>
Appy selector to obj and return matching nodes.

    If only one node is found, return it, otherwise return a list of matches.
    Returns False on syntax error. None if no results found.