There's a little bit of an error with the class.  I changed one line of code to change args.tc.classes to args.tc.num_uclasses as shown below. 