Python 2.6 does not know about the `flags` argument to re.sub