sample code for socketio on pyramid