added python version check