exec doesn't modify local values in Python 3