#!/usr/bin/python import daemon import ffstatus a = ffstatus.AlfredParser() with daemon.DaemonContext(): while True: a.execute() time.sleep(15)