add (and use) get_match_clause

needs an extra line (pep8)