i want to programatically record sound coming out of my laptop in python. i found PyAudio and came up with the following program that accomplishes the task:
PyAudio
unfortunately, theres no foolproof way to do it, but Audio Hijack and Wiretap are the best tools available for that.