Isn't this just itertools.chain?