Use of a binary string was necessary in py3.4 to avoid throwing an exception

There appears to be a mismatch here between the regex and the string being searched, this resolves it

Not tested on earlier versions of python