old_contents: #!/usr/bin/python
  
  import logging
  
  ## @brief del $to_find from existing meth
  #  to check the signature with other meths
  ## @param meth method to find
  ## @returns meth string without $to_find
  def over_meth(meth):
      meth = meth.replace("NS_IMETHOD_ ", "")
      meth = meth.replace("NS_IMETHOD ", "")
      meth = meth.replace("virtual ", "")
      meth = meth.replace("  ", " ")
      return (meth)
  
  def cli_progress_test(end_val, bar_length=20):
      for i in xrange(0, end_val):
          percent = float(i) / end_val
          hashes = '#' * int(round(percent * bar_length))
          spaces = ' ' * (bar_length - len(hashes))
          sys.stdout.write("\rProgression: [{0}] {1}%".format(hashes + spaces, int(round(percent * 100))))
          sys.stdout.flush()
  
  def is_macro(bar):
      par = 0
      for i in range(len(bar)):
          if (not bar[i].isupper() and not bar[i] == '_' and not bar[i] == '(' and not bar[i] == ')' and not bar == ":"):
              return False
      return True
  
  def check_ret_namespace(bar):
      res = ""
      start = bar.rfind("::")
      if (start == -1):
          return (bar)
      end = bar.rfind(" ", 0, start)
      if (end == -1):
          res = ""
      res = bar[:end + 1]
      res += bar[start + 2:]
      logging.debug("Ret: " + bar + " => " + res)
      return (res)
  
  def check_ret(bar):
      if (bar.find("NS_IMETHOD") == 0):
          return check_ret_namespace(bar)
      words = bar.split(' ')
      j = 0
      for i in range(len(words)):
          if is_macro(words[i]) == False:
              res = " ".join(words[i:])
              if (res == "*" or res == "&"):
                  return check_ret_namespace(bar)
              return check_ret_namespace(res)
          else:
              j = j + 1
      if i == j - 1:
          return ""
      return check_ret_namespace(bar)
  
new_contents: #!/usr/bin/python
  
  import logging, sys
  
  ## @brief del $to_find from existing meth
  #  to check the signature with other meths
  ## @param meth method to find
  ## @returns meth string without $to_find
  def over_meth(meth):
      meth = meth.replace("NS_IMETHOD_ ", "")
      meth = meth.replace("NS_IMETHOD ", "")
      meth = meth.replace("virtual ", "")
      meth = meth.replace("  ", " ")
      return (meth)
  
  def cli_progress_test(end_val, bar_length=20):
      for i in xrange(0, end_val):
          percent = float(i) / end_val
          hashes = '#' * int(round(percent * bar_length))
          spaces = ' ' * (bar_length - len(hashes))
          sys.stdout.write("\rProgression: [{0}] {1}%".format(hashes + spaces, int(round(percent * 100))))
          sys.stdout.flush()
  
  def is_macro(bar):
      par = 0
      for i in range(len(bar)):
          if (not bar[i].isupper() and not bar[i] == '_' and not bar[i] == '(' and not bar[i] == ')' and not bar == ":"):
              return False
      return True
  
  def check_ret_namespace(bar):
      res = ""
      start = bar.rfind("::")
      if (start == -1):
          return (bar)
      end = bar.rfind(" ", 0, start)
      if (end == -1):
          res = ""
      res = bar[:end + 1]
      res += bar[start + 2:]
      logging.debug("Ret: " + bar + " => " + res)
      return (res)
  
  def check_ret(bar):
      if (bar.find("NS_IMETHOD") == 0):
          return check_ret_namespace(bar)
      words = bar.split(' ')
      j = 0
      for i in range(len(words)):
          if is_macro(words[i]) == False:
              res = " ".join(words[i:])
              if (res == "*" or res == "&"):
                  return check_ret_namespace(bar)
              return check_ret_namespace(res)
          else:
              j = j + 1
      if i == j - 1:
          return ""
      return check_ret_namespace(bar)
  
subject: fix typo #26