Is there a way to filter items selected in session manger with python?

Hello, I am trying to figure out a way to get items highlighted (selected) in session manager interface using python. is there event that I could use to get the selections?

Thank you,