You should re-think how you select between the two Python syntax versions. The current method allows setting g:python_version_2=0 globally for python3 and lets buffers set b:python_version_2=1 for python2. But it doesn't allow setting g:python_version_2=1 to ensure python2 is the default and setting b:python_version_2=0 to get python3 for a single buffer.
You should re-think how you select between the two Python syntax versions. The current method allows setting
g:python_version_2=0
globally for python3 and lets buffers setb:python_version_2=1
for python2. But it doesn't allow settingg:python_version_2=1
to ensure python2 is the default and settingb:python_version_2=0
to get python3 for a single buffer.