How To Define A Stack In Python