autodetect python version