title: Python code checker for comparing a function as an attribute
body: <p>I occasionally spend a considerable amount of time tracking down brainfarts in my code... while I normally run pylint against it, there are some things that slip past pylint.  The easiest problem for me to overlook is this...</p>
  
  <pre><code># normally, variable is populated from parsed text, so it's not predictable
  variable = 'fOoBaR'
  if variable.lower == 'foobar':
      #       ^^^^^&lt;------------------ should be .lower()
      do_something()
  </code></pre>
  
  <p>Neither pylint nor Python bark about this... is there a python code-checking tool that can flag this particular issue?</p>