Commit Function In Python Boolean Data