def create_mobile_account(ad_account):

    managed_app = "/System/Library/CoreServices/ManagedClient.app/"
    unix_cma = "Contents/Resources/createmobileaccount"
    shell_tools.run("%s%s -n %s" % (managed_app, unix_cma, ad_account))
    make_admin(ad_account)
create_mobile_account()
dataset/ETHPy150Open facebook/IT-CPE/code/lib/modules/account_tools.py/create_mobile_account