Stack Implementation Using Python