OpenWISP (https://openwisp.org) tries to do this and it's Python and Django based.
Last time I checked it out, it seems like they keep configuration in an intermediate format that is then translated to manufacturer-specific formats, so it should be possible to build a Unifi converter for that.
Somebody started doing this. Shame they chose PHP though.
https://github.com/imperian-systems/unifi-controller