That looks like code from the PyBluez Python module, which, as you've discovered, does not support BLE. You're going to want to look into Ian Harvey's bluepy module, which does support scanning for BLE devices, if memory serves, by way of a Scanner object.