Model Inversion Based Incremental Learning Python