The misagent service allows installation, removal and listing of .mobileprovision file
pymobiledevice3 has an implementation which can be used for inspiration https://github.com/doronz88/pymobiledevice3/blob/master/pymobiledevice3/services/misagent.py