Commit Function In Python Exercise