probability density function python from data