Applies PEP-8 and pyflakes style to `tests` and `zipline`.
Applies PEP-8 and pyflakes style to `tests` and `zipline`.

Mostly whitespace, line width and other spacing changes.
Also, removes use of deprecated has_key in favor of `in`

Going forward new patches should pass running `flake8` before
submission.

quantopian/tradingcalendar