Commit And Rollback In Python For All Selected Lines