at last the socket bridge works great, i also added the raw code in a seperate file for testing from the python repl