Move some methods from pycore to project.

These methods use objects from project and don't really have a reason
for being in pycore.