Improve Py3 compatibility, handling of site roots