Ejecutando el código de vez en cuando bucle python

flg = True
while COUNT != 0:
    print("Running!")
    if flg:
        text = process[0] + " process running"
        url = URL + "sendMessage?text={0}&chat_id={1}".format(text, CHAT_ID)
        # send message to groups
        requests.get(url)
        flg = False
Handsome Horse