(moved the post to the RasPi forum)
in python, whitepsace has meaning. It sounds like some tabs have gotten mixed in with the spaces that indent the code, and the compiler doesn't like that. If you have a word processor that can translate tabs to spaces, ues that to bring everything under the same formatting rules. If not, a find-and-replace that puts four spaces where each tab is usually works.
When you void a product warranty, you give up your right to sue the manufacturer if something goes wrong and accept full responsibility for whatever happens next. And then you truly own the product.