title: Trouble with masking password input in Python
body: <p>I am using Python. I am making a script where the user has to enter the password in the terminal.</p>
  
  <p>I have already found a solution on this website by using the getpass module.</p>
  
  <pre><code>new_password=getpass.getpass(prompt="Type new password: ")
  </code></pre>
  
  <p>The problem is I get a warning and the password input gets displayed as well.</p>
  
  <pre><code>Warning (from warnings module):
    File "C:\Python34\lib\getpass.py", line 101
      return fallback_getpass(prompt, stream)
  GetPassWarning: Can not control echo on the terminal.
  Warning: Password input may be echoed.
  </code></pre>