Master Branch Bot continuously failing to start.
Expected Behavior
Start up bot Bot runs.
Actual Behavior
Start up bot One of two errors occurs. Haven't been able to run bot at all today. Was working fine yesterday.
Steps to Reproduce
python pokecli.py -cf ulti.json
(ulti.json) http://pastie.org/private/pqtfxciepqnukc1ql6eta
Then the following two errors cycle in and out of occurring.

Other Information
OS: MacOS 10.12 Beta Git Commit: 4794ecb9a37ff8915662946be700b00c4d306b7d
The second image shows a frequent error, that has something to do with a status code 52 returned instead of information. Looking into it, it appears to have something to do with the buffer being too small or something. In my own version I have a simple check for the error code and request info again rather than crashing out.
The first image I have no idea, I just started getting it, but I am unable to run any bot currently.
No ideas?
I get the second error on Master Branch at startup every single time. Sometimes the bot will start if you run it again immediately other times it just won't work. I've had up to six different accounts open and they all get this on initial startup. A couple of them will startup on the second attempt. Dev branch seems to work ok.