For the flatpak version the mpv.conf file can be created in ~/.var/app/io.mpv.Mpv/config/mpv/. You probably don't need to link it to the yt-dlp python file as the flatpak mpv version should come with the latest yt-dlp.
~/.var/app/io.mpv.Mpv/config/mpv/
This is a most excellent place for technology news and articles.
For the flatpak version the mpv.conf file can be created in
~/.var/app/io.mpv.Mpv/config/mpv/
. You probably don't need to link it to the yt-dlp python file as the flatpak mpv version should come with the latest yt-dlp.