You might find this document useful: Intel® Edison Products — Intel® Edison Products Bluetooth* User Guide. There is a section about Python scripts in page 30. You can take a look at these scripts and take advantage from them to write your own scripts: bluez.git - Bluetooth protocol stack for Linux
Also, in the document you will find a link to the source code of GATTtool in page 31: bluez.git - Bluetooth protocol stack for Linux
I hope you find this information helpful.