Creating dynamically named variables in a function in python 3 / Understanding exec / eval / locals in python 3,foo()