python: Make credentials cache test run against Windows