Python 3.6's implementation updates `os.fsencode` / `os.fsdecode` to use `os.fspath` ([PEP 519]), which may have to be backported too. [PEP 519]: https://www.python.org/dev/peps/pep-0519/