def lookup_endpoint(cli):
url = '<STR_LIT>'.format(APPNAME)<EOL>environ = cli.user.get(url).item<EOL>port = environ['<STR_LIT>']<EOL>host = socket.gethostbyname(environ['<STR_LIT>'])<EOL>return "<STR_LIT>".format(host, port)<EOL>
Looks up the application endpoint from dotcloud