Added python version detection