code: def parse_style(self, style):
          '''
          style : string, eg:
              fill:#ff2a2a;fill-rule:evenodd;stroke:none;stroke-width:1px;
              stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1
          returns color as a triple of unsigned bytes: (r, g, b), or None
          '''
          style_elements = style.split(';')
          while style_elements:
              element = style_elements.pop()
              if element.startswith('fill:'):
                  return self.parse_color(element[5:])
          return Nonf parse_style(self, style):
          '''
          style : string, eg:
              fill:#ff2a2a;fill-rule:evenodd;stroke:none;stroke-width:1px;
              stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1
          returns color as a triple of unsigned bytes: (r, g, b), or None
          '''
          style_elements = style.split(';')
          while style_elements:
              element = style_elements.pop()
              if element.startswith('fill:'):
                  return self.parse_color(element[5:])
          return None
docs: style : string, eg:
              fill:#ff2a2a;fill-rule:evenodd;stroke:none;stroke-width:1px;
              stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1
          returns color as a triple of unsigned bytes: (r, g, b), or None