def get(self): data = [ youtube.getstats(ytartists), facebook.getstats(fbartists), #lastfm.getstats(lfartists), soundcloud.getstats(scartists), twitter.getstats(tartists) ] out = [row for network in data for row in network] items = [] for item in out: items.append(Measurement(**item)) ndb.put_multi(items)