remove noisy messages from which. Replace os.system with subprocess