Experimenting with pickle to avoid all the hassle of serialization