Simple stacking using Python with statement.