Update dynamic_scope.py

fix attribute error in DynamicScope.__repr__