code: def _preprocess_yml(path):
      
      with open(path) as f:
          tmp_yaml = f.read()
      return re.sub(r"unicode", "str", tmp_yaml)
docs: Dynamically create PY3 version of the file by re-writing 'unicode' to 'str'.