Spaces to tabs, pep8
Remove unused, use `is` for bool comparisons