'Make a pretty power.'

def __pow__(self, b):

    a = self
    use_inline_func_form = False
    if (b.binding == prettyForm.POW):
        b = stringPict(*b.parens())
    if (a.binding > prettyForm.FUNC):
        a = stringPict(*a.parens())
    elif (a.binding == prettyForm.FUNC):
        if (b.height() > 1):
            a = stringPict(*a.parens())
        else:
            use_inline_func_form = True
    if use_inline_func_form:
        b.baseline = (a.prettyFunc.baseline + b.height())
        func = stringPict(*a.prettyFunc.right(b))
        return prettyForm(*func.right(a.prettyArgs))
    else:
        top = stringPict(*b.left(('    ' * a.width())))
        bot = stringPict(*a.right(('    ' * b.width())))
    return prettyForm(binding=prettyForm.POW, *bot.above(top))
