Commit Comment on Repository

How to list out commit comment? Also, how can we access commit comments in python?