The SIM card emulator re-uses the mitm.py code with an implementation of SIM card requests and answers instead of phone.py.