How to fix socket.timeout: timed out in Python | DevErrors