Merge style dictionaries in order

def _styleof(expr, styles):
    """Merge style dictionaries in order"""
    style = dict()
    for expr_filter, sty in styles:
        if expr_filter(expr):
            style.update(sty)
    return style