Sample code copied from python osc library