Use of Socket Module for DNS query and use of xlwt for editing an .xls