human
Solve the following python programming problem given the following code:
@ cli.init (parser) 
def main(args) : 
    term = blessings.Terminal () 
    table_generator = OrderedDict ([('ID', (lambda x : x.id)), ('name', (lambda x : x.name)), ('host', (lambda x : x.hostname)), ('active', (lambda x : x.active)), ('tasks', (lambda x : x.task_count)), ('cpu', (lambda x : x.cpu_allocated)), ('mem', (lambda x : x.mem_allocated)), ('disk', (lambda x : x.disk_allocated))]) 
    tb = prettytable.PrettyTable ([x.upper () for x in table_generator.keys ()], border = False, max_table_width = args.width, hrules = prettytable.NONE, vrules = prettytable.NONE, left_padding_width = 0, right_padding_width = 1) 
    def format_row(framework) : 
        return [fn (framework) for fn in table_generator.values ()] 
for framework in MASTER.frameworks (active_only = (not args.inactive)) : 
        tb.add_row (format_row (framework)) 
if (tb.rowcount == 0) : 
        cli.header ('You have no frameworks') 
else : 
        print (tb) 

    
    

    Fix the buggy line: tb = prettytable.PrettyTable ([x.upper () for x in table_generator.keys ()], border = False, max_table_width = args.width, hrules = prettytable.NONE, vrules = prettytable.NONE, left_padding_width = 0, right_padding_width = 1)
assistant
#Here is Python program to fix the buggy line: tb = prettytable.

tb = prettytable.PrettyTable ([x.upper () for x in table_generator.keys ()], border = False, max_table_width = term.width, hrules = prettytable.NONE, vrules = prettytable.NONE, left_padding_width = 0, right_padding_width = 1)