title: Finishing twitter bot's automation
body: <p>I'm almost done with this bot I just need help automating it's output to go through the tweepy api. I have 3 functions, the first 2 form random sentences from list's, and the third will alternate between the two randomly. My problem is having the third function's output print to my twitter bot, i'm assuming you use <code>api.update_status()</code> as well as<code>sleep</code> to automate it but even after reading through the docs I'm not sure how to use them with my functions.</p>
  
  <pre><code># -*- coding: utf-8 -*-
  import random
  import tweepy
  from time import sleep
  from credentials import *
  
  auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
  auth.set_access_token(access_token, access_token_secret)
  api = tweepy.API(auth)
  
  
  def sentence_type():
  
  words = [["sentence1","sentence2","sentence3"],
          ["conjunction1","conjunction2","conjunction3"],
          ["sentence1, sentence2, sentence3],
          ["sentence1, sentence2, sentence3"]]
  
  
  print( ' '.join([random.choice(w) for w in words]))
  
  
  def sentence_type_2():
  
  words = [["sentence1","sentence2","sentence3"],
          ["conjunction1","conjunction2","conjunction3"],
          ["sentence1, sentence2, sentence3],
          ["sentence1, sentence2, sentence3"]]
  
  
  
  print( ' '.join([random.choice(w) for w in words]))
  
  
  
  
  def get_Sentence():
  num = random.randrange(1, 3)
  if num == 1:
      sentence_type()
  elif num == 2:
      sentence_type_2()
  </code></pre>
  
  <p>get_Sentence()</p>