removed some superfluous code from analysis.py