Basic structure of scripts and code used for calculations in http://arxiv.org/abs/1309.0749