Consuming a kinesis stream in python,time.sleep(1)