how to use socket package in python