Lets use it. the setup is just a raspberrypi or any linux box with a bluetooth usb adapter plugged in
<linux terminal>
$ sudo apt-get update
$ sudo apt-get install bluetooth bluez-utils blueman
$ easy_install PyBluez <this is the python library you are going to need>
$hcitool scan
<end linux terminal>
the hcitool scan will return a mac address then you can use or pass the mac address in python and find out if the device is in the area.
<python stuff starts here>
import bluetooth
result = bluetooth.lookup_name('11:22:33:44:55:66', timeout=5)
if (result != None):
output = "locator=mike location=1"
else:
output = "locator=mike location=0"
print output
<end python stuff >
this will print out the locator and 0 or 1 depending on whether or not the device was found.
!!! the end user doesn't need to have discovery enable after you found out what the mac address is.