Cleaner python version check