check the python version instead of trying to import uuid.