Stack

Improve readability and pythonicity.