Seems so that python_version is not evaluated at odoo. Try to use the pgk_resources to evaluate. But then specific python version must be used.