remove duplicate code

There was twice a check for the Python version on OSX but the logging in the second step could never be reached.