Is there any way to write a telnet like application in Python for Series 60?

I'm trying to run with the socket code in a thread as I know you can't set sockets non-blocking. However settimeout() isn't present and I can't access the same socket object from two threads (I think).

This means that if I call recv() it will block until there is data to receive and it is the only way of finding out if there is any data to receive AFAIK. As I can't access the socket from multiple threads this means I must stop sending until I receive something which would be a problem.

Please tell me where I am wrong, what I have missed or whether this really is impossible at the moment.

Joseph