ATmega32U4 code:

#include <Bridge.h>
void setup()
{
    	Bridge.begin();    
}
void loop()
{
	char lbuffer[256]; 
	Bridge.get("D12", lbuffer, 256); 
     	Bridge.put("D13", String(random(1, 100)));
	delay(1000);	
}
nano bridge.py
#!/usr/bin/python
import sys
sys.path.insert(0, '/usr/lib/python2.7/bridge/')
from bridgeclient import BridgeClient as bridgeclient
value = bridgeclient()
value.put("D12","Test")
print value.get('D13')
chmod 755 bridge.py
./bridge.py