get python version from python command and remove unecessary stuff