I have a list of URLs in a text file. Some of them are short, while others are very long. I'd like to have Python go through this text file and delete all lines containing strings that go over the maximum character limit. How can I do something like that in Python?