Compile Python support optionally