re-ported OSC to python3