what are you expect `b` to be? a string representing a file without leading slashes? if you know you are always getting a string then why not just use `os.path.join` directly?

Here also getting non-single-letter argument names might help when reading this and when stepping through it with the debugger. In `pdb` the `b` means `break`.