
import os
from pickle import *
try: import json
except ImportError: import simplejson as json

test1 = ["a",3,4,5]
test2 = [1,2,3,4]
list = [test1, test2]

##file = open('./levels/maplet01.py','w')
##dump(list,file)
##file.close()
##
##
##file = open('./levels/maplet01.py','r')
##list = load(file)
##file.close()

file = open('./levels/maplet01.py','w')
file.write(json.dumps(list))
file.close()

file = open('./levels/maplet01.py','r')
list = json.load(file)
file.close()

new_list = []
for item in list:
    #print item
    new_list.append(item)
    
print new_list[0]
print new_list[0][0]