configure: check for supported Python 2.x versions