Array Operation Using Python For Automation