old_contents: from cobra.core import Gene
  from ssbio.core.protein import Protein
  
  
  class GenePro(Gene):
      """Extends the COBRAPy Gene object to add GEM-PRO annotations
      """
  
      def __init__(self, id, name='', functional=True):
          Gene.__init__(self, id=id, name=name, functional=functional)
          self.protein = Protein(ident=id)
new_contents: from cobra.core import Gene
  from ssbio.core.protein import Protein
  
  
  class GenePro(Gene):
      """Extends the COBRAPy Gene object to add GEM-PRO annotations
      """
  
      def __init__(self, id, name='', functional=True):
          Gene.__init__(self, id=id, name=name, functional=functional)
          self.protein = Protein(ident=id)
  
      def reset_protein(self):
          self.protein = Protein(self.id)
subject: Add reset_protein method