Play video file with VLC, then quit VLC
Funnily enough, vlc has a command line option for this:
--play-and-exit, --no-play-and-exit Play and exit (default disabled)
So, just pass this option to vlc.
Another option would be to pass the dummy item vlc://quit
, e.g.:
vlc audio1.mp3 audio2.mp3 vlc://quit
Source: https://wiki.videolan.org/Transcode/#Completely_non-interactive_transcoding
Best way I can think of is killing the process by a separate thread after video length has passed, if you know the length of the video in Python. Elsewhere, it depends on VLC-s command line options. Maybe you can tell him to close after playing the movie.