formatting to python 2.7 (necessary to use scrapy with django)