We have deprecated the use of Pickle as a primary serilization method. Pickle contains a serious vulnerability that could lead to arbitrary code execution. It has been replaced by a safer implementation based on JSON module.
For backwards compatibility, the Pickle methods are still available, but we output a warning that it is vulnerable. The Pickle methods are now objectToBytesWithPickle and bytesToObjectWithPickle.