Get the right Python version for comilation