py: fix serializer for seq and union

If the args list is empty, default to drop and id, respectively.