Problems On Stack In Python