Beginnings of python wrapper, and deserialize method