Add more print info to unexpected state changes
self.sleep -> time.sleep