publish a dictionary of functions as 'folder' and instead of assigning load_contents_pt to window, use folder.load_contents