Use the python scheduler instead of sleep. I think this deals with the suspension of the host.