Fix python check and supported versions