used tool 2to3 (program is breaked now)
fixed after 2to3 (program works now)
improved 'delay' behavior