Upgrading to scrapy 0.22

Minor changes in order to use with scrapy 0.22