title: if statement to check whether coordinates are within a range
body: <p>Here is part of my code from a project where I am trying to stream tweets, which I plan to save into a database in Google App Engine. It is important for me to be able to get the lat and long values for the coordinates. (I plan to plot these later.)</p>
  
  <p>The current results look something like this... </p>
  
  <p>'tweet text'@REDACTED Not sure, to be honest... As a Google product, you'd think so. They may have an official extension in the web store.
  \ 'User Name'REDACTED
  \  'Created at't2013-09-26 08:39:45
  \  'Created with'tTwitter for Android
  \ 'geo't{u'type': u'Point', u'coordinates': [52.569001, -2.7846582]}\ 'coordinates't{u'type': u'Point', u'coordinates': [-2.7846582, 52.569001]}</p>
  
  <p>What I would love to do is to change where it says "if status.coordinates is not None" to check if the coordinates are within a range. ie Lat 50 - 55 and long 0 - 5.</p>
  
  <p>Thank you! :)</p>
  
  <pre><code>class CustomStreamListener(tweepy.StreamListener):
  
      def on_status(self, status):
  
          if status.coordinates is not None:
              try:
                  print "'tweet text'%s\n\ 'User Name't%s\n\  'Created at't%s\n\  'Created with't%s\n\ 'geo't%s\ 'coordinates't%s" % (status.text, 
                                    status.author.screen_name, 
                                    status.created_at, 
                                    status.source,
                                    status.geo,
                                    status.coordinates)
              except Exception, e:
                  print &gt;&gt; sys.stderr, 'Encountered Exception:', e
                  pass
  
      def on_error(self, status_code):
          print &gt;&gt; sys.stderr, 'Encountered error with status code:', status_code
          return True # Don't kill the stream
  
      def on_timeout(self):
          print &gt;&gt; sys.stderr, 'Timeout...'
          return True # Don't kill the stream
  </code></pre>