Wow, code pasting in this forum is totally messed up. Anyway, the correct indentation is this: def execute(self, context): Python doesn't use curly brackets, like C++ or Javascript do, to know when a block scope starts/ends, it only relies on indentation. You should use a text editor that supports automatic indentation,…