Don't change the working directory; the template loading logic relies on the current working directory remaining stable.
You can easily list a directory without changing the working directory:
def GET_Contents(filepath):
return os.listdir(os.path.join('files', filepath))