python script to plot flanking regions