Establishing Bluetooth Connection to Development Board in Python

What are the steps to establishing a Bluetooth connection to the Development Boarad in Python? I used:

myBoard.PCInterfaceConfig(PCINTERFACE.SERIAL, "COM7")

where COM7 is the Bluetooth wireless port.

This works the first time but when the program ends, and I try running another program with the same command, the Bluetooth port doesn't get established. The only solution I have found is to go to the Bosch Development Desktop software package, establish a connection in Bluetooth, then close Bosch Development Desktop, and then run my program. I am guessing that somehow the Bluetooth connection needs to be reset or disconnected but I don't see an API to do that. I have tried connecting to USB first with the same statement, then connecting via Bluetooth, but that didn't solve this problem. Any ideas?

3 replies