Add copy() method for FrameLocalsProxy which returns a snapshot dict for local variables.
copy()
FrameLocalsProxy
dict