#!/usr/bin/python

import bluetooth
import exceptions
from datetime import datetime

server_sock=bluetooth.BluetoothSocket( bluetooth.RFCOMM )
port = 10
server_sock.bind(("", port))
server_sock.listen(0)

while True:
    client_sock,address = server_sock.accept()
    data = ""
    while True:
       try:
           data += client_sock.recv(1024)
       except:
           break;
    print datetime.now(), "-", data
    client_sock.close()

server_sock.close()

@@ -272,113 +272,30 @@
 a = 
-%22%22%0A    while True:%0A       try:%0A           data += client_sock.recv(1024)%0A       except:%0A           break;
+client_sock.recv(1024)
 %0A   

fix server