[Yaml] Fix re.sub py26 compat