Here is a sample to connect BLE Mini in Central role and scan BLE devices. This sample only detects TI SensorTag. This is heavily based on the SensorTag_Central_HCI.py sample from RedBearLab. This behaviour is exactly what this python is doing. The sample initialize the BLE in Central mode, start device discovery, connect to SensorTag and enable notification for the Button press.
For this demo application I am using HCI_UART_57600bps_20130502 firmware. RedBearLab provides detailed instructions to update the firmware, you can find the information here (see the how to upgrade section).
When a button press occurs the application publishes button press event. The client program (Web Page) subscribe this event and display button press graphically.