Pulling in various versions of Python to try make a program work is only asking for trouble.
I assumed you had cracked Mochad on the Raspberry Pi as you had gone ahead with Domoticz and installing the plugin for the RM Link. Again that was not the case.
Just for reference, I have NOT mixed and matched different versions of python... Yes, I tried to install 3.6 and 3.7 ovr the course of this experimenting - in order to solve the fact that broadlink and its dependency python programs would just plain NOT install on ver 3.5 -- OVER FULL GUI STRETCH. THAT was the issue. When I found the LITE stretch DID allow these pyhton programs to load with the LITE version 3.5, I moved on with that. So please do not think I mixed and matched python versions; the issue was broadlink and 3 other dependent python programs would NOT load into python 3.5 ON STRETCH FULL GUI.
As for cracking mochad, I too thought I had... So I have come full circle yet again... I made a fresh stretch LITE imaged card, rand update & upgrade on it. I then used:
https://sigmdel.ca/michel/ha/domo/domo_08_en.htmlto install mochad on this fresh card with no other programs installed.
YAE! It ran -- for 3 minutes.
nc localhost 1099
saw my RF CR12 presses. great!
So went on to send:
echo "pl a1 on" | nc localhost 1099
YAE! It echoed that back to me!! but but but... it did NOT send it thru the cm15...
OK, well a little fluke is ok now and then, right? So I began pressing buttons on my CR12 remote... my lites came on and off - but now the pi REPORTS NOTHING. DOESnot see them anymore...
great.
So know I KNOW mochad does NOT work on stretch lite for more than 3 minutes before locking up.
This is IDENTICAL to what I see on my full domaticz/broadlink/mochad complete card.
I now know for certain mochad 1.17 locks up by itself with no help from me. It is NOT MY FAULT. This python program has serious issues.
I am a glutten for punishment so tomorrow I will re image this card yet again and instead install mochad ver 1.16 and try again. It has been said by others that mochad 1.17 sometimes locks up and no one has any clue why...