How to change file output node's file subpath value in python
I found a solution here and it works
scene = bpy.context.scene
for node in scene.node_tree.nodes:
    if node.type == 'OUTPUT_FILE':
        node.file_slots[0].path = ''