import json
import os


class DataStore(object):
    def __init__(self, storagePath="desertbot_data.json"):
        self.storagePath = storagePath
        self.data = None
        self.load()

    def load(self):
        if not os.path.exists(self.storagePath):
            self.data = {}
            self.save()
            return
        with open(self.storagePath) as storageFile:
            self.data = json.load(storageFile)

    def save(self):
        tmpFile = "{}.tmp".format(self.storagePath)
        with open(tmpFile, "w") as storageFile:
            storageFile.write(json.dumps(self.data, indent=4))
        os.rename(tmpFile, self.storagePath)

@@ -164,12 +164,10 @@
 a = 
-None
+%7B%7D
 %0A   
@@ -257,35 +257,8 @@
 h):%0A
-            self.data = %7B%7D%0A
     
@@ -608,24 +608,199 @@
 File, self.storagePath)%0A
+%0A    def __len__(self):%0A        return len(self.data)%0A%0A    def __iter__(self):%0A        return iter(self.data)%0A%0A    def __getitem__(self, item):%0A        return self.data%5Bitem%5D%0A

Allow using DataStore class as if dict