add wsgi_to_bytes to c