time.sleep takes seconds, not milliseconds