Autodetect python version