Introduced persistent storage api and added plusplus.py which utilises it