fix getting the python current version

Since python --version output is a stderr not a stdin, the redirect is required.