python libev interface