Sharing references between Python and Rust - Inside Mercurial