I find this function totally confusing.  I believe the intent of the function is to add the tuple (unit_id, unit_location,unit_type,event_time) to the end of the c_g_u_list ?   If so, I believe that can be done in one or two lines of code instead of 8, and the result will probably be more efficient as well.