Stack Operations Using Arrays In Python 3