Apply a nonlinear transform to model using Python code

Thanks a lot, your post it´s so helpful and now we can apply nonlinear transforms to models.