Make sure path is normalised on Windows (this cause a bug where the same file
can be opened multiple times)
Cleanup: get rid of that unused weakref (circular reference are now handled without the need of a weekref)