fix for Python 2, iterate over keys() of locals