python3 compatibility
--timeout option for socket operations