code: def merge(self, obj):
          
          for attribute in dir(obj):
              if '__' in attribute:
                  continue
              setattr(self, attribute, getattr(obj, attribute))
docs: This function merge another object's values with this instance
  
          :param obj: An object to be merged with into this layer
          :type obj: object