A simple LIFO stack in Python