As you are commenting these lines, the tests are uneeded. Python will evaluate them for nothing, thus losing time. Why not adding them only when needed?