code: def styleProperties(Class, style):
          
          properties = Dict()
          for property in style.getProperties(all=True):
              stylename = property.name + ':'
              properties[stylename] = property.value
              if property.priority != '':
                  properties[stylename] = ' !'+property.priority
          return properties
docs: return a properties dict from a given cssutils style