def process_file(pyfile_name):
print('<STR_LIT>' + pyfile_name)<EOL>with open(pyfile_name) as fpyfile:<EOL><INDENT>pyfile_str = fpyfile.readlines()<EOL><DEDENT>file_dict = {'<STR_LIT>': pyfile_name.replace('<STR_LIT:\\>', '<STR_LIT:/>')}<EOL>if pyfile_str[<NUM_LIT:0>].startswith("<STR_LIT>"):<EOL><INDENT>file_dict['<STR_LIT>'] = pyfile_str[<NUM_LIT:0>][:-<NUM_LIT:1>].strip("<STR_LIT:'>")<EOL><DEDENT>else:<EOL><INDENT>file_dict['<STR_LIT>'] = pyfile_name<EOL><DEDENT>file_dict['<STR_LIT>'] = []<EOL>for line in pyfile_str:<EOL><INDENT>if line.startswith('<STR_LIT>'):<EOL><INDENT>line_num = pyfile_str.index(line)<EOL>fn_def = line[<NUM_LIT:4>:]<EOL>fn_name = fn_def.split('<STR_LIT:(>')[<NUM_LIT:0>]<EOL>function_info = {'<STR_LIT:name>': fn_name}<EOL>extract = extract_code('<STR_LIT::>', fn_def, pyfile_str, line_num)<EOL>function_info['<STR_LIT>'] = extract['<STR_LIT>']<EOL>line_num = extract['<STR_LIT>'] + <NUM_LIT:1><EOL>doc_line = pyfile_str[line_num]<EOL>if doc_line.startswith("<STR_LIT>"):<EOL><INDENT>comment_str = doc_line[<NUM_LIT:7>:]<EOL>extract = extract_code(<EOL>"<STR_LIT>", comment_str, pyfile_str, line_num)<EOL>function_info['<STR_LIT>'] = extract['<STR_LIT>']<EOL><DEDENT>file_dict['<STR_LIT>'].append(function_info)<EOL><DEDENT><DEDENT>return file_dict<EOL>
Process a Python source file with Google style docstring comments.

    Reads file header comment, function definitions, function docstrings.
    Returns dictionary encapsulation for subsequent writing.

    Args:
        pyfile_name (str): file name to read.

    Returns:
        Dictionary object containing summary comment, with a list of entries for each function.