Controlling the order of terms in an equation

This probably applies to python, jupyter lab and jupyter hub since I use all three.
I have an equation that I wrote
(s+lambda)3 but it is displayed as (lambda+s)^^3. How can I change the order so it prints (s+lambda3) ?
Likewise. If I have an term a-b it often gets printed as -b+a.
It seems that the python solver has this problem too where it always displays equations with the terms in the wrong order.

I want to make some nice looking .html and .pdf files for documentation.