r stands for "raw" and means the \x00 is three characters in the docstring  rather than a null byte.
It's more important when doctesting, but it's techincally correct here.