added a check for python version