I would be very surprised if it were possible to create Human UI elements from Python. I do not recommend this strategy.
Also, it is not possible to dynamically change the number of elements in a Human UI window. Your only option is to create more elements than you might need and programmatically hide/show them: HumanUI: ...but I DO need to drive the creation of elements with the results of a value listener...? - #2 by andheum