Stack Program Using Python For Automation