Python implementation of Vincent Mazet's rtnorm code (http://miv.u-strasbg.fr/mazet/rtnorm/rtnorm-en.htm).