running python mapping set to buffer local