Python script for parsing scrapy logs into json for rendering with d3.js