@staticmethod<EOL><INDENT>def _replace_data_types(dictionary):<DEDENT>
logging_levels = {'<STR_LIT>': <NUM_LIT:0>, '<STR_LIT>': <NUM_LIT:0>, '<STR_LIT>': <NUM_LIT:10>, '<STR_LIT>': <NUM_LIT:20>,<EOL>'<STR_LIT>': <NUM_LIT:30>, '<STR_LIT>': <NUM_LIT>, '<STR_LIT>': <NUM_LIT:50>}<EOL>for k, v in dictionary.items():<EOL><INDENT>if v in ['<STR_LIT:true>', '<STR_LIT:True>', '<STR_LIT>']:<EOL><INDENT>dictionary[k] = True<EOL><DEDENT>elif v in ['<STR_LIT:false>', '<STR_LIT:False>', '<STR_LIT>']:<EOL><INDENT>dictionary[k] = False<EOL><DEDENT>elif k == '<STR_LIT>' and '<STR_LIT>' in v:<EOL><INDENT>dictionary[k] = v.replace('<STR_LIT>', os.path.expanduser('<STR_LIT>'))<EOL><DEDENT>elif v in logging_levels:<EOL><INDENT>dictionary[k] = logging_levels[v]<EOL><DEDENT>elif isinstance(v, str) and v.isnumeric():<EOL><INDENT>dictionary[k] = int(v)<EOL><DEDENT>elif '<STR_LIT:U+002C>' in v:<EOL><INDENT>dictionary[k] = [x.strip() for x in v.split('<STR_LIT:U+002C>')]<EOL><DEDENT><DEDENT>return dictionary<EOL>
Replaces strings with appropriate data types (int, boolean).
Also replaces the human readable logging levels with the integer form.

dictionary: A dictionary returned from the config file.