build: older pythons don't support ternary if