Internal Api Example Code Python