in reply to Re^2: wait command syntax
in thread wait command syntax

If you're running the python script from a perl CGI script, then it may be a permissions problem. The CGI script will run as a different user than when you run it in a terminal.