Fixed the check of python version. Thanks to Henri Salo (https://github.com/fgeek)