old_contents: from groundstation.proto.gizmo_pb2 import Gizmo
  
  from groundstation import logger
  log = logger.getLogger(__name__)
  
  import pygit2
  
  class Response(object):
      def __init__(self, response_to, payload):
          self.type = "RESPONSE"
          self.id = response_to
          if payload is not None:
              self.verb = "TRANSFER"
          else:
              self.verb = "TERMINATE"
          self.payload = payload
  
      def SerializeToString(self):
          gizmo = Gizmo()
          gizmo.id = str(self.id)
          gizmo.type = Gizmo.REQUEST
          gizmo.verb = self.verb
          if self.payload:
              gizmo.payload = self.serialize_payload(self.payload)
          return gizmo.SerializeToString()
  
      @staticmethod
      def serialize_payload(payload):
          if isinstance(payload, pygit2.Blob):
              return payload.data
          else:
              return payload
  
new_contents: from groundstation.proto.gizmo_pb2 import Gizmo
  
  from groundstation import logger
  log = logger.getLogger(__name__)
  
  import pygit2
  
  class Response(object):
      def __init__(self, response_to, payload):
          self.type = "RESPONSE"
          self.id = response_to
          if payload is not None:
              self.verb = "TRANSFER"
          else:
              self.verb = "TERMINATE"
          self.payload = payload
  
      def SerializeToString(self):
          gizmo = Gizmo()
          gizmo.id = str(self.id)
          gizmo.type = Gizmo.RESPONSE
          gizmo.verb = self.verb
          if self.payload:
              gizmo.payload = self.serialize_payload(self.payload)
          return gizmo.SerializeToString()
  
      @staticmethod
      def serialize_payload(payload):
          if isinstance(payload, pygit2.Blob):
              return payload.data
          else:
              return payload
  
subject: Fix copypasta issue in response serialization