mitmproxy: fix compilation error when using system default python.

Fixes #27736.