Correct sleep calls

Looks like we import "from time import sleep" but were calling "time.sleep" which is scoped into the wrong namespace.
Merge pull request #5758 from drawks/devel

Correct sleep calls