Can Functions Access Main Memory Python