Correct sleep calls

Looks like we import "from time import sleep" but were calling "time.sleep" which is scoped into the wrong namespace.