Update mercurial and python packages