Stack Operations Using Arrays In Python