server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server.bind(('127.0.0.1', 36547))
sock, addr = server.accept()
b'teste'
pegar_tamanho_f = int(sock.recv(1024).decode())
1212149
with open('novo_classifier.tgz', 'wb') as nc: nc.write(sock.recv(pegar_tamanho_f))
from subprocess import check_output
print(check_output(['md5sum /home/kanazuchi/projetos/sockets/*.tgz'], shell=True))
b'b0c3ddce35fa5cc90ec5943a590005b6 /home/kanazuchi/projetos/sockets/classifiers250418.tgz\nb0c3ddce35fa5cc90ec5943a590005b6 /home/kanazuchi/projetos/sockets/nn.tgz\nb0c3ddce35fa5cc90ec5943a590005b6 /home/kanazuchi/projetos/sockets/novo_classifier.tgz\n'