A port of Jesse Windles PolyaGamma sampling code using Cython.