Python port of ruby dat-science