Fix flake8 import errors

- Removed unused imports in files
- Added `__all__` variables in `__init__.py` and `spirit_tags.py`
- Added flake8 check to `.travis`