def _convert_value(self, value_orig):
import ast<EOL>if value_orig is None:<EOL><INDENT>return value_orig<EOL><DEDENT>if value_orig.startswith("<STR_LIT:'>") and value_orig.endswith("<STR_LIT:'>"):<EOL><INDENT>value = value_orig[<NUM_LIT:1>:-<NUM_LIT:1>]<EOL><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>avalue = ast.parse(value_orig).body[<NUM_LIT:0>].value<EOL>if isinstance(avalue, ast.BinOp):<EOL><INDENT>value = value_orig<EOL><DEDENT>else:<EOL><INDENT>value = ast.literal_eval(value_orig)<EOL><DEDENT><DEDENT>except Exception:<EOL><INDENT>value = self._convert_string(value_orig)<EOL><DEDENT>if isinstance(value, int) and '<STR_LIT:_>' in value_orig:<EOL><INDENT>value = value_orig<EOL><DEDENT><DEDENT>return value<EOL>
things like 6 and 1.25 are converted with ast.literal_value

Things like 'hello' are stripped of quotes