use instead:
super(QTableWidget, self).__init__(parent, *args)

The first one shouldn't be used, and we are trying to update the parts of ninja that still has that.