print based on python algorithm
Merge branch 'porkchop' of https://github.com/pbailis/spark into porkchop