def upload_accounts_by_battles_chart_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)
    battlerange = api.media_upload(BATTLERANGE_PNG)
    api.update_status(status='Breakdown of accounts by number of battles played on #worldoftanksconsole', media_ids=[battlerange.media_id])
def upload_accounts_by_battles_chart_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)
    battlerange = api.media_upload(BATTLERANGE_PNG)
    api.update_status(status='Breakdown of accounts by number of battles played on #worldoftanksconsole', media_ids=[battlerange.media_id])