A translation of all the code from Baseball Hacks (Joseph Adler) into Python.