Update interface.py

Fix timeout problem under Python 2.7.1 where a socket.error 60 is thrown instead of socket.timeout exception.