Ambient sound Cancellation in python

I want to create an application in which I input heart sound recordings with ambient sound and want output without noise, without ambient noise only clear heart sound.

How can I do this in python???

I’m closing this thread because it is off-topic (unrelated to Audacity).

(You may find pyaudio to be a useful starting point for your programming task)