from subprocess import check_output


def call_me():
    a = check_output(["defaults", "read", "com.apple.maps.FusionX", "AutomationAPIPort"])
    print a
    print a

    HOST_ADDRESS = "http://127.0.0.1:"+a.strip()+"/"
    print HOST_ADDRESS

call_me()
