title: How to check if a network port is open?
body: <p>How can I know if a certain port is open/closed on linux ubuntu, not a remote system, using python? 
  How can I list these open ports in python?</p>
  
  <ul>
  <li>Netstat: 
  Is there a way to integrate netstat output with python? </li>
  </ul>