Fix import of socketserver on Python 3.

Closes gh-5382
Merge pull request #5386 from takluyver/i5382

Fix import of socketserver on Python 3