fixes for quantlib.util.compat usage and six in prettyprint