code: def set_environment_variable(self, key, val):
          
          if self.get_environment_variable(key) in [None, val]:
              self.__dict__['environment_variables'][key] = val
          else:
              raise Contradiction("Could not set environment variable %s" % (key))
docs: Sets a variable if that variable is not already set