Fix for issue 3192

replace exec by eval to ensure the c variable is defined for all relevant python versions
as was discussed here: https://github.com/numpy/numpy/issues/3192