#!/usr/bin/env python
from random import randint
from time import sleep
from os import system
from easygui import msgbox

while True:
  sleep(randint(30, 600))
  #for _ in range(5):
  #  print "\a"
  #  time.sleep(.2)
  system("aplay /usr/lib/libreoffice/share/gallery/sounds/kongas.wav")
  msgbox("Hi Dan", "Time is up")
  



@@ -129,22 +129,24 @@
 True:%0A  
-sleep(
+delay = 
 randint(
@@ -153,70 +153,27 @@
 30, 
-6
+11
 00)
-)
 %0A  
-#for _ in range(5):%0A  #  print %22%5Ca%22%0A  #  time.
 sleep(
-.2
+delay
 )%0A  
@@ -278,9 +278,4 @@
 p%22)%0A
-  %0A%0A%0A

Remove commented code.