mostly adding global setup function and progress increment to .py