new_contents: import socket
   
  hostMACAddress = 'B8:F6:B1:19:5F:68' # The MAC address of a Bluetooth adapter on the server. The server might have multiple Bluetooth adapters. 
  port = 1   # 3 is an arbitrary choice. However, it must match the port used by the client.  
  backlog = 1
  size = 1024
  s = socket.socket(socket.AF_BLUETOOTH, socket.SOCK_STREAM, socket.BTPROTO_RFCOMM)
  s.bind((hostMACAddress,port))
  s.listen(backlog)
  try:
  	client, address = s.accept()
  	while 1:
  		data = client.recv(size)
  		if data:
  			print(data)
  			client.send(data)
  except:	
  	print("Closing socket")				
  	client.close() 
  	s.close()
subject: test bluetooth using python 3 socket (doesn't work)