update node sync Python examples

- Python 3 compatibility
- set SNDHWM to avoid hangs / drops (matches C)