Simple stacking for Python