Get Python version directly from shell