def upload_activity_graphs_to_twitter(config):
    auth = OAuthHandler(config['twitter']['api key'], config['twitter']['api secret key'])
    auth.set_access_token(config['twitter']['access token'], config['twitter']['access token secret'])
    api = API(auth)
    battles = api.media_upload(BATTLES_PNG)
    players = api.media_upload(PLAYERS_PNG)
    newplayers = api.media_upload(NEWPLAYERS_PNG)
    averages = api.media_upload(AVERAGE_PNG)
    api.update_status(status=config['twitter']['message'], media_ids=[players.media_id, battles.media_id, newplayers.media_id, averages.media_id])
def upload_activity_graphs_to_twitter(config):
    auth = OAuthHandler(config['twitter']['api key'], config['twitter']['api secret key'])
    auth.set_access_token(config['twitter']['access token'], config['twitter']['access token secret'])
    api = API(auth)
    battles = api.media_upload(BATTLES_PNG)
    players = api.media_upload(PLAYERS_PNG)
    newplayers = api.media_upload(NEWPLAYERS_PNG)
    averages = api.media_upload(AVERAGE_PNG)
    api.update_status(status=config['twitter']['message'], media_ids=[players.media_id, battles.media_id, newplayers.media_id, averages.media_id])