I've looked at the problem a bit, there are two issues to solve at first glance ; (A)
there doesn't seem to be a telnet server library in python, so whatever you do you
have to write your own telnet server, which is a bit more than just handling the sockets
and newlines and of course (B) this has to be linked to someone's API key, although we
could simply release the code and have everyone run their own little gateway. So, it's
both simple and not simple. Maybe another language ( perl comes to mind -
NetServer:Generic ) would be better suited to run a telnet server.