@WarrenWeckesser: done; 
@josef-pkt: no problem, but I personally find too many spaces make long-ish formulas somewhat less readable. And the rest of the code around does not follow pep-8 in this respect.