Prevented a switch from being turned on twice. Made the module regex more robust. Refactored the code to reduce the amount of network traffic to/from pulseaudio. Fixed pylint issues