better check of python version (that actually works on 2.6!)