KDE bounded python implementation: https://github.com/scipy/scipy/blob/v0.12.0/scipy/stats/kde.py#L42