try to catch socket name in python