Any particular reason for using pickle? It looks like all basic types that could be JSON encoded. I try to avoid pickle as much as possible, as you never really think about it as executable code, but it really is.