compare ordered lists python