trying to add some stuff to run quantile in scipy