def info2dicts(info, in_place=False):
if '<STR_LIT>' not in info and '<STR_LIT>' not in info:<EOL><INDENT>return info<EOL><DEDENT>if in_place:<EOL><INDENT>info_dicts = info<EOL><DEDENT>else:<EOL><INDENT>info_dicts = info.copy()<EOL><DEDENT>packages = info.get('<STR_LIT>')<EOL>if packages:<EOL><INDENT>info_dicts['<STR_LIT>'] = list2dict(packages, '<STR_LIT>')<EOL><DEDENT>releases = info.get('<STR_LIT>')<EOL>if releases:<EOL><INDENT>info_dicts['<STR_LIT>'] = list2dict(releases, '<STR_LIT:name>')<EOL><DEDENT>return info_dicts<EOL>
Return info with:

1) `packages` list replaced by a 'packages' dict indexed by 'project'
2) `releases` list replaced by a 'releases' dict indexed by 'name'