Fix python extension

The default 'on_ping' callback now needs to send its own pong, due to
changes made to the server API.