'Rule is a tuple of (namespace, name). If the namespace is \'\' then
it is already CSS2'

def convert_styles(self, ruleset):

    sdict = {}
    for (rule, val) in list(ruleset.items()):
        if (rule[0] == ''):
            sdict[rule[1]] = val
            continue
        method = self.ruleconversions.get(rule, None)
        if method:
            method(ruleset, sdict, rule, val)
    return sdict
