<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parse_selector(self, selector):
 """ parse a css selector """

        tag, klass = self.selector_re.match(selector).groups()
        return Selector(tag, klass)