def _format(color, text): """ Generic pretty print string formatter """ return u"{}{}{}".format(color, text, PrettyPrinter.Colors.ENDC)