> This was already there, if you see the red line.

That doesn't necessarily mean it makes sense.
The only place this function is used is somewhere on
the top of this file.

Try running "pyflakes" to spot such issues.