Python APIs for Map Window Contextual Actions