emit error when python version is not 2.7