Strif is a tiny (<1000 loc) library of string- and file-related utilities for Python 2.7 and 3.
More information: https://github.com/jlevy/strif