code: def _convert_value(value):
      
      try:
          return restore(ast.literal_eval(value))
      except (ValueError, SyntaxError):
          if SETTINGS.COMMAND_LINE.STRICT_PARSING:
              raise
          # use as string if nothing else worked
          return value
docs: Parse string as python literal if possible and fallback to string.