def _handle_objects_related_type_conversions(values):
 for key in ('access_ip_v4', 'access_ip_v6'):
  if ((key in values) and (values[key] is not None)):
   values[key] = str(values[key])
 datetime_keys = ('created_at', 'deleted_at', 'updated_at', 'launched_at', 'terminated_at')
 convert_objects_related_datetimes(values, *datetime_keys)

def _handle_objects_related_type_conversions ( values ) : for key in ( 'access_ip_v4' , 'access_ip_v6' ) : if ( ( key in values ) and ( values [ key ] is not None ) ) : values [ key ] = str ( values [ key ] ) datetime_keys = ( 'created_at' , 'deleted_at' , 'updated_at' , 'launched_at' , 'terminated_at' ) convert_objects_related_datetimes ( values , * datetime_keys )
make sure that certain things in values are in suitable form for the database .