Update interface.py

Fix timeout problem under Python 2.7.1 where a socket.error 60 is thrown instead of socket.timeout exception.
Merge pull request #549 from dmcdad/patch-1

Fix timeout problem in interface.py.