Improves doppelpulssuche.py and plot_threshold.py scripts