Disable M1 motors via API



I am building an android app to program M1 dobot and i want to implement hand teaching functionality. Therefore, I need to disable M1 motors via API (using python). Is it possible? I could not find anything in the API reference.

Thank you in advance,