Python/Bluetooth Support for Lego Mindstorms NXT on Mac OS X

The file bluetooth.py contains some Python glue code I wrote to allow NXT_Python to run on Mac OS X without modification. NXT_Python uses the PyBluez package, which (as of April 2008) runs on Linux and (perhaps) Windows but not on Mac OS X. My bluetooth.py implements just the code from PyBluez/bluetooth.py that is needed by NXT_Python. Here's what you need to do: