[core][py] don’t ask for morphologies several times uselessly