Misunderstood the problem set

It’s required to print the my_locals dic, instead of a self-defined
one. Besides an invalid key will be supplied so need to take care of
that.