more robust python version check, fixes NPC 349

distutils.StrictVersion had problem with '2.7.5+' which is valid version name,
Max Lapan found out using LooseVersion() fixes that.
We avoid the distutils module, use string truncation [:3] and compare.