You are mixing tabs and spaces.
Find the exact location with:
python -tt yourscript.py
and replace all tabs with spaces. You really want to configure your text editor to only insert spaces for tabs as well.
1.4m articles
1.4m replys
5 comments
56.9k users