Python + ROOT framework for producing final stack plots