If I understand the problem right, might be able to create an AUP file and open audacity with that file which will open a project with both audio files in it. https://manual.audacityteam.org/man/audacity_2.html
I am less familiar with subprocess but this might solve your issue: How to terminate a python subprocess launched with shell=True