Python Socket Check Connection To Printer