changes according to PEP8
Bad file descriptor exception fixed on client disconnect
according to PEP8