def tick(duration, tick):
    "Plays a the ticking sound specified by tick for duration time"
    cmd = ["mpg123", "--loop", "-1" , tick]
    p = subprocess.Popen(cmd, stdout = DEV_NULL, stderr = subprocess.PIPE)
    try:
        time.sleep(duration)
    except KeyboardInterrupt:
        display("Interrupting")
    p.kill()
Plays a the ticking sound specified by tick for duration time
recipes/Python/577358_Pomodoro_timer/recipe-577358.py