Outputting current MovieStim name to be read by Unity

One way that I can think of is to send a message over the localhost network using the UDP protocol. In Python you could send a message as follows:

import socket

UDP_IP = "127.0.0.1"
UDP_PORT = 5005
MESSAGE = "Hello, World!"

print("UDP target IP: %s" % UDP_IP)
print("UDP target port: %s" % UDP_PORT)
print("message: %s" % MESSAGE)

sock = socket.socket(socket.AF_INET, # Internet
                     socket.SOCK_DGRAM) # UDP
sock.sendto(MESSAGE.encode(), (UDP_IP, UDP_PORT))

Listening to the message in Unity (using C#) can be somewhat complicated depending on whether you want to listen for the message synchronously (i.e., your application blocks until a message is received) or asynchronously (the application does not block and the message is received in a callback function).

Alternatively, I think in C# you also have something called a File Watcher which you can use to trigger events in case a specific file has changed. In that case, you could write the name of the movie to a file and in Unity the file watcher will pick this up.