In [7]:
myarr = [[i*j for i in xrange(2)] for j in xrange(3)]
myarr


Out[7]:
[[0, 0], [0, 1], [0, 2]]

In [2]:
l = [(1, '{\n    "emoticons": [\n        "awesome", \n        "Smiley"\n    ], \n    "links": [\n        {\n            "id": 0, \n            "title": "Beautiful Soup Documentation \\u2014 Beautiful Soup 4.2.0 documentation", \n            "url": "http://www.crummy.com/software/BeautifulSoup/bs4/doc/"\n        }\n    ], \n    "mentions": [\n        "Ramki"\n    ], \n    "message_time": "Sun Mar 08 04:22:09 2015"\n}'  , u'user1'), (2, '{\n    "emoticons": [\n        "Smilaey", \n        "awesome", \n        "Smiley", \n        "angry", \n        "Angry "\n    ], \n    "links": [\n        {\n            "id": 0, \n            "title": "Beautiful Soup Documentation \\u2014 Beautiful Soup 4.2.0 documentation", \n            "url": "http://www.crummy.com/software/BeautifulSoup/bs4/doc/"\n        }, \n        {\n            "id": 1, \n            "title": "\\"Friends\\" The One Where Everybody Finds Out (TV Episode 1999) - IMDb", \n            "url": "http://www.imdb.com/title/tt0583452/?ref_=tt_eps_rhs_1"\n        }\n    ], \n    "mentions": [\n        "Ramki", \n        "jacob18"\n    ], \n    "message_time": "Sun Mar 08 04:39:10 2015"\n}'  , u'user1')]

In [5]:
for u in l:
    print type(u)


hi (1, '{\n    "emoticons": [\n        "awesome", \n        "Smiley"\n    ], \n    "links": [\n        {\n            "id": 0, \n            "title": "Beautiful Soup Documentation \\u2014 Beautiful Soup 4.2.0 documentation", \n            "url": "http://www.crummy.com/software/BeautifulSoup/bs4/doc/"\n        }\n    ], \n    "mentions": [\n        "Ramki"\n    ], \n    "message_time": "Sun Mar 08 04:22:09 2015"\n}', u'user1')
hi (2, '{\n    "emoticons": [\n        "Smilaey", \n        "awesome", \n        "Smiley", \n        "angry", \n        "Angry "\n    ], \n    "links": [\n        {\n            "id": 0, \n            "title": "Beautiful Soup Documentation \\u2014 Beautiful Soup 4.2.0 documentation", \n            "url": "http://www.crummy.com/software/BeautifulSoup/bs4/doc/"\n        }, \n        {\n            "id": 1, \n            "title": "\\"Friends\\" The One Where Everybody Finds Out (TV Episode 1999) - IMDb", \n            "url": "http://www.imdb.com/title/tt0583452/?ref_=tt_eps_rhs_1"\n        }\n    ], \n    "mentions": [\n        "Ramki", \n        "jacob18"\n    ], \n    "message_time": "Sun Mar 08 04:39:10 2015"\n}', u'user1')