def pretty_table(self):
    'Returns a string of the prettytable'
    x = PrettyTable()
    x.field_names = ['Config', 'Value']
    x._max_width = {'Config': 50, 'Value': 60}
    for (attr, value) in self.__dict__.items():
        if (attr == 'config'):
            x.add_row([str(attr), str(value.pretty_table())])
        else:
            x.add_row([str(attr), str(value)])
    return str(x.get_string())
Returns a string of the prettytable
def pretty_table(self):
    
    x = PrettyTable()
    x.field_names = ['Config', 'Value']
    x._max_width = {'Config': 50, 'Value': 60}
    for (attr, value) in self.__dict__.items():
        if (attr == 'config'):
            x.add_row([str(attr), str(value.pretty_table())])
        else:
            x.add_row([str(attr), str(value)])
    return str(x.get_string())