Fixes test_symlinks on Python 3