flag removed from re.sub(), support for python 2.6