I moved to use a dict instead of a list, but i still sort and use newlines at writing time, see last commits.