Move method to function because it doesn't use 'self'.
Move some methods from pycore to project.

These functions are better placed in the project object. Adjust the
functions that call them appropriately.