fix Python version checker on Python <=2.6

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>