Here is how you can fetch all available ML handlers directly from Python code:

mindsdb = server.get_project('mindsdb')
ml_handlers = mindsdb.query('SHOW HANDLERS WHERE type = \'ml\'')
print(ml_handlers.fetch())