'sys-apps/portage x86 amd64 ppc'
would return
{ "sys-apps/portage" : [ 'x86', 'amd64', 'ppc' ]
the line syntax is key : [list of values]
"""
newdict={}
for x in grablines(myfilename, recursive):