Use when the user asks for Python scripts (`.py`), command-line Python workflows, reproducible medical statistics analysis scripts, or explicitly says they do not want notebooks. Create top-to-bottom Python analysis scripts using pandas, scipy, statsmodels, scikit-learn, lifelines, matplotlib, and seaborn as needed.