title: python psutil on windows gives access denied
body: <p>os: windows professional</p>
  
  <p>i am trying to use psutil to get a list of processes and their cpu usage, i ran the script as administrator and it fails when it encounters process DymoPnpService.exe, what could be the issue?</p>
  
  <pre><code>import psutil
  
  def process():
      plist = psutil.get_process_list()
      plist = sorted(plist, key=lambda i: i.name)
      for i in plist:
          print i.name, i.get_cpu_percent()
  
  def main():
      process()
  
  
  main()
  </code></pre>
  
  <p>AcroRd32.exe 0.0
      AcroRd32.exe 0.0
      DymoPnpService.exe</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\Users\krisdigitx\Documents\windowsutil.py", line 13, in &lt;module&gt;
      main()
    File "C:\Users\krisdigitx\Documents\windowsutil.py", line 10, in main
      process()
    File "C:\Users\krisdigitx\Documents\windowsutil.py", line 7, in process
      print i.name, i.get_cpu_percent()
    File "C:\Python27\lib\site-packages\psutil\__init__.py", line 330, in get_cpu_percent
      pt1 = self._platform_impl.get_cpu_times()
    File "C:\Python27\lib\site-packages\psutil\_psmswindows.py", line 125, in wrapper
      raise AccessDenied(self.pid, self._process_name)
  AccessDenied: (pid=1832, name='DymoPnpService.exe')
  </code></pre>
  
  <p><strong>more research:</strong></p>
  
  <p>strange i can run the program from the windows command prompt...but it fails in the python ide</p>