fix gaierror: [Errno -2] Name or service not known