Unpaired backslashes are just artifacts of the representation and not actually stored internally. You could cause errors if trying to do this manually.
If your only interest is removing a backslash not preceded by an odd amount of backslashes, you could try a while loop:
escaped_str = 'One \\\'example\\\''
chars = []
i = 0
while i < len(escaped_str):
if i == '\\':
chars.append(escaped_str[i+1])
i += 2
else:
chars.append(escaped_str[i])
i += 1
fixed_str = ''.join(chars)
print fixed_str
Examine your variables afterwards and you'll see why what you're trying to do doesn't make sense.
...But on a side note I'm almost 100% certain "the same way Python's lexical parser" does it is not using a parser, so to speak. A parser is for grammars, which describe the way you fit words together.
You're thinking of lexical content verification maybe, which is often specified using regular expressions. Parsers are an altogether more challenging and powerful beast, and not something you want to mess around with for the purposes of linear string manipulation.