import json


def convert_nested_json_strings(event: dict):
    """
    Converts Json nested as strings in the event to python dictionaries
    Args:
        event (dict): A single event from a Step Functions Cloudwatch Log
    Returns:
        (dict) : A new dictionary of the event but with nested json strings
                converted to dictionaries too
    """
    converted_event = {}
    for key, value in event.items():
        if isinstance(value, str):
            converted_event[key] = json.loads(value)
        else:
            converted_event[key] = value
    return converted_event