Related resources for arranging data in list in Python