This could probably be a generator: `return ((url, rank/num_urls) for url in urls)`. Also, I'm pretty sure the elements returned have to be tuples, not arrays. Did it work with arrays?