That's almost always due to mixing spaces and tabs in the same file. [Never do that.](http://www.python.org/dev/peps/pep-0008/#tabs-or-spaces). We use spaces for indentation, not tabs.