STY: More pep8 fixes.
WIP: Initial port of history.
ENH: Adapt history() to work on zipline.
TST: Changed unittest to depend on random seed.