Sandbox example code throws ServiceUnavailable error


I'm trying to start a sandbox and connect to it using python. I tried copying the example code from the templates, but I get an error: "ServiceUnavailable: Timed out trying to establish connection to ('', 34896)".

Example code:

from neo4j.v1 import GraphDatabase, basic_auth

driver = GraphDatabase.driver(
    auth=basic_auth("neo4j", "clap-dominions-inch"))
session = driver.session()

# Who are the legislators in legis-graph?
cypher_query = '''
MATCH (l:Legislator)
RETURN l.firstName + ' ' + l.lastName AS name
LIMIT $limit

results =,
  parameters={"limit": 10})

for record in results:

Can anybody help me understand what's going on?