def load_port_host_token():
server_host, server_port, token = (None, None, None)<EOL>if '<STR_LIT>' in os.environ:<EOL><INDENT>server_host = os.environ['<STR_LIT>']<EOL><DEDENT>if '<STR_LIT>' in os.environ:<EOL><INDENT>server_port = os.environ['<STR_LIT>']<EOL><DEDENT>token = os.environ.get('<STR_LIT>', None)<EOL>if server_host:<EOL><INDENT>if server_host.startswith('<STR_LIT>'):<EOL><INDENT>server_host = server_host[<NUM_LIT:7>:]<EOL><DEDENT>if server_host.startswith('<STR_LIT>'):<EOL><INDENT>server_host = server_host[<NUM_LIT:8>:]<EOL><DEDENT>if server_host.endswith('<STR_LIT:/>'):<EOL><INDENT>server_host = server_host[:-<NUM_LIT:1>]<EOL><DEDENT><DEDENT>if not server_host or not server_port:<EOL><INDENT>raise Exception("<STR_LIT>")<EOL><DEDENT>return (server_host, server_port, token)<EOL>
Find out which host:port to run acceptance tests against,
    using the environment variables PYM_SERVER_HOST, PYM_SERVER_PORT