pylint cleanup: unused imports and old-style exceptions

Fixed some warnings given by pylint:
1. Unused imports (checked by pylint and PyCharm)
2. Old-style `raise`
3. `CloseSpider` constructor lacks base class `__init__`. Not sure if it's bad for `Exception`, fixed just in case.