getsockopt: value-as-string needs PyBytes_AsString()