Update to not use pycore.

Rope moved these functions into the 'project' module.