There are several static analysis tools that can check whether a variable name is used before it is defined.<br><br>At my old workplace we used "pylint", so I can recommend that: <a href="http://www.logilab.org/857">http://www.logilab.org/857</a><br>
<br>--Daniel<br><br>