Python style stacks and queues