Python Line Append Commit