python deserialization fix for Model collection field