Squish + curves via Python

This chain might be helpful? How to call squish command in Rhino Script - #2 by Willem