basic py3.3 compatibility while keeping py2.7 compatibility

makes the api callable from py2.x and py3.x. Since scrapy itself is not yet python3 compatible this might be still useful if one has a control application/api written in py3 which should be able to control scrapy crawlers. 
but it had `xrange` before which returns an iterator in py2