Fredrik, thanks alot. Your preposition worked like a charm, plus I got to learn how to reverse an inner for loop using list comprehensions :) What I don't understand is what are you doing with *(...), this is supposed to pack its contents as a list?