Python - syntax error in established code
b'' or b"" define a byte string, this is a feature of Python2.7 or 3.x

See: https://stackoverflow.com/questions/17707085/python-string-b-prefix-byte-literals

You can use Python2.7 with Blender2.4x, but you'll have to recompile Blender, linking to the newer Python version.