Get selection cell IDs from Python

Within the Find Data window one can easily see the cell IDs belonging to a particular selection. Question is, how to access these IDs from Python?