Changed according to suggestions, and addressed most of the comments. The aside on sed has been marked as a non-Python section. Essentially the modified version has more corrections on certain issues, e.g. clarifying that it is possible to edit files in-place, and generally a deeper explanation of what text and file modification entails.