The standard indention we use is 4 space. The indention are not aligned and this code syntactically is wrong. And easy way to detect these bugs is to first run pylint http://www.logilab.org/857 and run nosetest for the tests in the folder you made the modifications.