Added missing import in Identity.from_dict()