title: Listening to port and capturing data in python
body: <p>I am using an application in C which sends continous data to a specified port. I can view the incoming data using 'Putty' (with telnet 127.0.0.1 port 30003). </p>
  
  <p>Now I want to capture that data for processing. Please advice how to do that in python?</p>
  
  <p>The data flows in line by line, at a rate of 5 lines per second. I should read the data line by line for processing and display it in a window.</p>