How do i select and print all grease pencil keyframes in python

How do i select and print all grease pencil keyframes in python?

please help.