title: Python method returns none
body: <p>I have a weird problem. I have a function that is supposed to returns list. I call the function using an object called 'common' and found that it returns None always (common.reset_this). But when I define this function outside the class, it returns what it is supposed to return.
  Is there anything I am missing here.</p>
  
  <pre><code>class something_else():
  
      //
      ...
  
      //
      def reset_this(self,unit = 0):
          with self.__reset_lock:
              status = self.get_status(unit)
          return status
  </code></pre>