socket.setdefaulttimeout() screws certain commands like upload(), avoid it!