def stringify_op(obj, indent=0):
    result = ''
    if isinstance(obj, list):
        result += '['
        if (len(obj) != 0):
            result += '\n'
        for op in obj:
            result += (((' ' * (indent + 2)) + stringify_op(op, (indent + 2))) + ',\n')
        if (len(obj) != 0):
            result += (' ' * indent)
        result += ']'
        return result
    elif (isinstance(obj, dict) and ('type' in obj)):
        if (obj['type'] in ('clear', 'rect', 'rrect', 'reply', 'setVar', 'evtHnd', 'watch', 'ackWatch', 'if', 'text', 'save', 'restore', 'clipRect', 'image')):
            result += (('Ops.' + obj['type']) + '(')
            if (len(obj.keys()) != 1):
                result += '\n'
                for key in obj.keys():
                    if (key == 'type'):
                        continue
                    result += ((' ' * (indent + 2)) + f'''{key}={stringify_op(obj[key], (indent + 2))},
''')
                result += (' ' * indent)
            result += ')'
            return result
    return repr(obj)
def stringify_op(obj, indent=0):
    result = 
    if isinstance(obj, list):
        result += '['
        if (len(obj) != 0):
            result += '\n'
        for op in obj:
            result += (((' ' * (indent + 2)) + stringify_op(op, (indent + 2))) + ',\n')
        if (len(obj) != 0):
            result += (' ' * indent)
        result += ']'
        return result
    elif (isinstance(obj, dict) and ('type' in obj)):
        if (obj['type'] in ('clear', 'rect', 'rrect', 'reply', 'setVar', 'evtHnd', 'watch', 'ackWatch', 'if', 'text', 'save', 'restore', 'clipRect', 'image')):
            result += (('Ops.' + obj['type']) + '(')
            if (len(obj.keys()) != 1):
                result += '\n'
                for key in obj.keys():
                    if (key == 'type'):
                        continue
                    result += ((' ' * (indent + 2)) + f'{key}={stringify_op(obj[key], (indent + 2))},
')
                result += (' ' * indent)
            result += ')'
            return result
    return repr(obj)