def needs_local_scope(func):
 func.needs_local_scope = True
 return func

def needs_local_scope ( func ) : func . needs_local_scope = True return func
decorator to mark magic functions which need to local scope to run .