def alarm(alarm):
    "Plays the alarm sound specified by alarm"
    cmd = ["mpg123", alarm]
    p = subprocess.Popen(cmd, stdout = DEV_NULL, stderr = subprocess.PIPE)
    p.wait()
Plays the alarm sound specified by alarm
recipes/Python/577358_Pomodoro_timer/recipe-577358.py