use six to detect python version