@fredrik-johansson does mpmath have some kind of a context manager to handle these precision changes?