v2.0.0 py3 compatibility and values pickling