def dumb_property_dict(style):
    'returns a hash of css attributes'
    return dict([(x.strip(), y.strip()) for (x, y) in [z.split(':', 1) for z in style.split(';') if (':' in z)]])
returns a hash of css attributes
def dumb_property_dict(style):
    
    return dict([(x.strip(), y.strip()) for (x, y) in [z.split(':', 1) for z in style.split(';') if (':' in z)]])