deterministic serialization and readonlyshelve for pycc