Test fix and PEP8 compliance
Merge branch 'development' of https://github.com/scrapinghub/crawl-frontier into development