Sending data received on raspberry from webpage to arduino via Bluetooth

I am working on a small project in which a webpage is hosted on raspberry pi, there are some buttons with pre-defined values (single character). Whenever a user presses a button the data is sent to the pi. 
I need to send that data/character to arduino which is connected to the pi via bluetooth.

Till now i have been able to send data to the arduino from terminal by running a python program which takes raw input and forwards it via sock.send()

import bluetooth

[original story: Circuit Digest]

Circuit Digest 18 Oct 22:12