Remove the erroneous 'g' after time.sleep