code: def declare_var(self, key, val):
          
          if val is not None:
              line = "export " + key + '=' + str(val)
          else:
              line = "unset " + key
  
          self._add(line)
docs: Declare a env variable. If val is None the variable is unset.