text: import uuid
  import os
  from flask import request
  
  TEMP_FOLDER = './temp'
  
  def get_file_names():
      """Return a tuple with the domain and problem file names"""
      uuid_str = str(uuid.uuid4())
      domain_file_name = "domain_{}.pddl".format(uuid_str)
      problem_file_name = "problem_{}.pddl".format(uuid_str)
      return (domain_file_name, problem_file_name)
  
  def write_temp_files(file_names, domain_param, problem_param):
      """Write temp files with the domain and problem received"""
      domain_file_name = os.path.join(TEMP_FOLDER, file_names[0])
      problem_file_name = os.path.join(TEMP_FOLDER, file_names[1])
  
      # Write the domain
      with open(domain_file_name, 'w+') as domain:
          domain.write(domain_param)
      # Write the problem
      with open(problem_file_name, 'w+') as problem:
          problem.write(problem_param)
  
  def delete_temp_files(file_names):
      """Delete the temporary files"""
      os.remove(os.path.join(TEMP_FOLDER, file_names[0]))
      os.remove(os.path.join(TEMP_FOLDER, file_names[1]))
  
  def prepare_temp_files(domain_param, problem_param):
      """Prepare the temporary files getting generating the names and saving the content"""
      # Saves the domain and problem in temp
      if domain_param and problem_param:
          file_names = get_file_names()
          write_temp_files(file_names, domain_param, problem_param)
          return file_names
      else:
          return "Domain or Problem was not received"