#! /usr/bin/env python class myList(list): counter = 0 theList = [] def __init__(self, theItem): list.__init__(self) self.theList = theItem def mItems(self): n = [(self.theList[self.counter], self.theList[self.counter + 1])] self.counter = self.counter + 2 return n if __name__ == '__main__': d = myList(['headzoo', 'samble', 'joe', 'jack']) print [(x,y) for x, y in d.mItems()]