Add advanced_features.py — gap fixes (IoT, multilingual, federated, tests)

#8