Put it into a proper package
Fix a problem with the \xNN regex

Due to an obscure part of re.sub()'s behaviour, sections to be substituted cannot overlap.
For example, re.sub('([^a])b', '\1c', 'xbb') -> 'xcb' not 'xcc' as intended.
Thankfully, this particular case can be solved using the (?<!) extension