Amend identity.py.