title: Python: TypeError while using os.environ.get
body: <p>I want to access a shell environment variable in my python script.
  I am trying this </p>
  
  <pre><code>import os
  print os.environ.get["HOME"]
  </code></pre>
  
  <p>I get this error when I am executing in python 
  (I am getting the same error in bash also)</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\Users\sraparim\Desktop\GitHub issues\issue #1187\test.py", line 54, in &lt;module&gt;
      print os.environ.get["HOME"]
  TypeError: 'instancemethod' object has no attribute '__getitem__'
  [Finished in 0.2s with exit code 1]
  [shell_cmd: python -u "C:\Users\sraparim\Desktop\GitHub issues\issue #1187\test.py"]
  [dir: C:\Users\sraparim\Desktop\GitHub issues\issue #1187]
  [path: C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\WebEx\Productivity Tools;C:\Program Files (x86)\Cisco\OSD-ShellApplications;C:\Program Files (x86)\Sennheiser\SoftphoneSDK\;C:\Program Files\PuTTY\;C:\Python27\Scripts;C:\Python27;C:\Python27]
  </code></pre>
  
  <p>Please help...</p>