changing deprecated functions of scrapy library