Python String Array Append Function