Look to see what is being returned, one variable, a dictionary. So you don't need two calls. With care you can construct the code so that you do the function call and assignment into the two lists in a single call. This is a fairly common python technique so see if you can find a solution to doing this in a single step on the web.