[Bug 1020047] python 2.7.13 breaks bzr (TypeError in re.py)