def load_json_file(filename): site = Site() rv = site.load_json(filename, True) if rv is None: print 'Error', filename else : print filename