old_contents: from pprint import pprint
  import twitter
  from credentials import consumer_key, consumer_secret, access_key, access_secret
  
  api= twitter.Twitter(
  		        auth = twitter.OAuth(access_key, access_secret, consumer_key, consumer_secret))
  
  def get_users(topic_str):
  	results = api.users.search(q = topic_str)
  	IDs = [ user["id"] for user in results ]
  	return IDs
  
new_contents: from pprint import pprint
  import twitter
  from credentials import consumer_key, consumer_secret, access_key, access_secret
  
  auth = twitter.OAuth(access_key, access_secret, consumer_key, consumer_secret)
  api= twitter.Twitter(auth = auth)
  
  def get_users(topic):
  	results = api.users.search(q = topic)
  	IDs = [ user["id_str"] for user in results ]
  	return IDs
  
  def content_stream(topic):
  	stream = twitter.TwitterStream(auth = auth, secure = True)
  	ids = ','.join(get_users(topic))
  	tweet_iter = stream.statuses.filter(follow = ids)
  	for tweet in tweet_iter:
  		pprint(tweet)
  
  def create_list():
  	name= "test" # WIP
  	result = api.lists.create(name=name)
  	pprint(result)
  
  def post_something():
  	new_status = "testing testing"
  	results = api.statuses.update(status = new_status)
  	print "updated status: %s" % new_status
  
  # https://dev.twitter.com/rest/reference/post/lists/create
  # 	
  
  
  create_list()
  
  	
  
  
  
subject: add query stuff