title: MacPython: programmatically finding all serial ports
body: <p>I am looking for a solution to programmatically return all available serial ports with python.</p>
  
  <p>At the moment I am entering <code>ls /dev/tty.*</code> or <code>ls /dev/cu.*</code> into the terminal to list ports and hardcoding them into the pyserial class.</p>