<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def process_directory(directory_name, lazy=False):
 """Processes a directory filled with CSXML files, first normalizing the character encodings to utf-8, and then processing into a list of INDRA statements. Parameters directory_name : str The name of a directory filled with csxml files to process lazy : bool If True, the statements will not be generated immediately, but rather a generator will be formulated, and statements can be retrieved by using `iter_statements`. If False, the `statements` attribute will be populated immediately. Default is False. Returns ------- mp : indra.sources.medscan.processor.MedscanProcessor A MedscanProcessor populated with INDRA statements extracted from the csxml files """


    # Parent Medscan processor containing extractions from all files
    mp = MedscanProcessor()
    mp.process_directory(directory_name, lazy)
    return mp