import pywikibot
from pywikibot import pagegenerators
import traceback
import os
import re
from pywikibot.data import api
import sys
import simplejson as json
from time import strftime
from sets import Set
from datetime import date
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-6-143ce2f6ce4c> in <module>()
      1 from pywikibot.data import api
      2 import sys
----> 3 import simplejson as json
      4 from time import strftime
      5 from sets import Set

ImportError: No module named 'simplejson'
def ListOfArticles():
    meta_page = []
    meta_wiki = pywikibot.Site('meta', 'meta')
    meta_page = pywikibot.Page(meta_wiki, 'List of articles every Wikipedia should have')
    return meta_page
def LoadItemList():
    item_path = item_list_path
    if os.path.isfile(item_path):
        return
    f = open(item_path, 'w')
    count = 0
    grand_total = 0
    page = ListOfArticles()
    article   = page.get(get_redirect=False)
    name_last  = 0
    name_first = article.find(u'[[d:', name_last)
    while name_first > -1:
        name_mid  = article.find(u'|',  name_first)
        cat_start =article.rfind(u'\n== ', name_last, name_first)
        if cat_start > -1:
            cat_end   = article.find(u'==',cat_start+3, name_first)
            if cat_end > -1: 
                cat   = article[cat_start+3:cat_end]
                catName = ''.center(len(cat),'-')
                pywikibot.output(u'\n%s' % cat)
                pywikibot.output(u'\n%s' % catName)
                count = 0
name_last = article.find(u']]', name_first)
        if name_last > name_mid:
            name_last = name_mid
        article_item = article[name_first+4:name_last]
        f.write(article_item.encode("utf_8"))
        f.write('\n')
        count += 1
        grand_total += 1
        pywikibot.output(u'%d %s' % (count,article_item))
        name_first = article.find(u'[[d:', name_last)
  File "<ipython-input-9-c0e7e6536c6b>", line 2
    if name_last > name_mid:
    ^
IndentationError: unexpected indent