I haven't look at it, and I can't stand a language that decides code execution based on invisible characters ... so I avoid python completely ... and no that's not a complaint about your code

Just thought I'd mention that

+1 on Python's idiotic reliance on indentation for delineating code blocks. Makes it a pain to copy and insert code from other developers because some (the right thinking ones) use tabs and others (the wrong thinking ones) use spaces. Yeah, I come down on the tab side in that religious war

What's wrong with using explicit characters, like braces, for code blocks for crap's sake?
But even with pain in the ass of having to entab and normalize text more often than I'd like, I find Python too damn useful for small scale needs. It's great for limited scripts and glue between other tools. More often than not I start writing what I thought would be a simple script in Bash, then I get over some number lines or need to do anything complex then wish I'd used Python.
That said I'm glad you're not using Python for this pool. I assume that it's all compiled C, and it shows.
I recently started running a proxy and it's really interesting what you see in the logs. Kano.is and the ck solo pool are both rock solid on the connection front. Literally zero disconnects.
F2Pool (which I have as a third backup) shows something like 40 disconnects a day. Some other pools that I won't mention seem similarly shaky.
Running a proxy has been very eye opening...
If you set our pool as your third priority it is normal to have disconnect every half an hour or so because you are not submitting shares so that your connection's priority will be reduced and it may be seen as dead connection by the server as well.