fixed errors, and decreased time.sleep to 100