code: def _ewp_files_set(self, ewp_dic, project_dic):
          
          # empty any files in the template which are not grouped
          try:
              ewp_dic['project']['file'] = []
          except KeyError:
              pass
          # empty groups
          ewp_dic['project']['group'] = []
          i = 0
          for group_name, files in project_dic['groups'].items():
              ewp_dic['project']['group'].append({'name': group_name, 'file': []})
              for file in files:
                  ewp_dic['project']['group'][i]['file'].append({'name': file})
              ewp_dic['project']['group'][i]['file'] = sorted(ewp_dic['project']['group'][i]['file'], key=lambda x: os.path.basename(x['name'].lower()))
              i += 1
docs: Fills files in the ewp dictionary