def get_injected_files(personality):
 injected_files = []
 for item in personality:
  injected_files.append((item['path'], item['contents']))
 return injected_files

def get_injected_files ( personality ) : injected_files = [ ] for item in personality : injected_files . append ( ( item [ 'path' ] , item [ 'contents' ] ) ) return injected_files
create a list of injected files from the personality attribute .