Implementing Stack Using Array In Python Documentation