with open('secrets.yml') as f:
    content = f.read()
secret = yaml.load(content)
auth = tweepy.OAuthHandler(secret['CONSUMER_KEY'], secret['CONSUMER_SECRET'])
auth.secure = True
Authentication only via config file?