title: Detect OS with python
body: <p>I was looking around trying to find a solution to my issue, the best I could find was this:</p>
  <pre><code>from sys import platform
  if platform == &quot;linux&quot; or platform == &quot;linux2&quot;:
      # linux
  elif platform == &quot;darwin&quot;:          
      # OS X
  elif platform == &quot;win32&quot;:             
      # Windows...
  </code></pre>
  <p>Does anybody know how I could differentiate a Linux PC from android as android Is based off of Linux. And if this is possible, how could I differentiate Mac OS from iOS</p>