Recently, beets developers started documenting their python API. IMHO the web plugin is a bit clumsy (there are plans to improve it though) but maybe it makes sense to use the python API instead? This should also allow simplifications of the code base, e.g. the code in client.py could basically be removed then. Furthermore, it doesn't require users to start a separate services (beets web) to interface with beets from mopidy.