better handling of python version in Makefile