title: removing blank lines python
body: <p>I am pulling information from a web site (in this case ip/location etc) using python 3</p>
  
  <pre><code>import urllib.request
  
  data = urllib.request.urlopen('http://www.maxmind.com/app/locate_my_ip')
  for search in data:
      if b'align="center"&gt;' in search:
          print(next(data).decode().rstrip())
  data.close()
  </code></pre>
  
  <p>How can I remove blank lines / put information into tuples / save as variables etc. I want to be able to start using the data gathered. </p>