title: How to get PID by process name?
body: <p>Is there any way I can get the PID by process name in Python?</p>
  
  <pre class="lang-none prettyprint-override"><code>  PID USER      PR  NI  VIRT  RES  SHR S  %CPU %MEM    TIME+  COMMAND                                                                                        
   3110 meysam    20   0  971m 286m  63m S  14.0  7.9  14:24.50 chrome 
  </code></pre>
  
  <p>For example I need to get <code>3110</code> by <code>chrome</code>. </p>