Your browser does not support the audio element. You found the fix. You stopped using mutable defaults. You started passing None and initializing inside the function ...
I copied a Python dictionary, but the original still changed. Here's how shallow copies, shared references, and deep copies ...