def _apply_rewrites(date_classes, rules):
for rule in rules:<EOL><INDENT>date_classes = rule.execute(date_classes)<EOL><DEDENT>return date_classes<EOL>
Return a list of date elements by applying rewrites to the initial date element list