def convert_key_strings_to_int(data):
    """
    Convert keys that are strings of integers to integers
    """
    result = {}
    for (key, value) in data.items():

        if isinstance(value, list):
            value = tuple(value)

        if key.isdigit():
            result[int(key)] = value
        else:
            result[key] = value
    return result