changed base storing to python dicts