Cannot build skia properly on linux

I am unable to build skia because it uses python2. I’d rather not install python 2 as it would mean I would have to remove python3.
This is the error I get

gn gen out/Release-x64 --args=“is_debug=false is_official_build=true skia_use_system_expat=false skia_use_system_icu=false skia_use_system_libjpeg_turbo=false skia_use_system_libpng=false skia_use_system_libwebp=false skia_use_system_zlib=false”
ERROR at //gn/BUILDCONFIG.gn:85:14: Script returned non-zero exit code.
is_clang = exec_script("//gn/is_clang.py",
^----------
Current dir: /home/jgf/deps/skia/out/Release-x64/
Command: python /home/jgf/deps/skia/gn/is_clang.py cc c++
Returned 1.
stderr:

Traceback (most recent call last):
File “/home/jgf/deps/skia/gn/is_clang.py”, line 12, in
if (‘clang’ in subprocess.check_output(’%s --version’ % cc, shell=True) and
TypeError: a bytes-like object is required, not ‘str’