Commit Function In Python Boolean