code: def canonical_headers(self, headers_to_sign):
          l = ['%s:%s'%(n.lower().strip(),
                        headers_to_sign[n].strip()) for n in headers_to_sign]
          l.sort()
          return '\n'.join(l)