Split xbee.helpers.dispatch Dispatch.run() into while loop and dispatch()
Split xbee.helpers.dispatch Dispatch.run() into while loop and dispatch()

The logic contained in the run method was split off into a method which
handles a single packet at a time to allow for more convenient asyncronous
calls from an XBee in multithreaded mode

sensestage/python-xbee