Simple, Pythonic, text processing