more portable way to get python3 environment