the beacon library is in blescan.py, based on switchdocslabs code
https://github.com/switchdoclabs/iBeacon-Scanner-
to run the test beacon scanner, which will show you all the beacon's it can find, do:
sudo python testblescan.py
sudo python beacon-servo.py
check the files comments to see how the code works