Icehouse version of hybrid_identity.py