import json

def get_location(id):
    ret = None
    with open(str(id)+".json", "r") as f:
        jsontext = f.read()
        d = json.loads(jsontext)
        d['id'] = id
        ret = Location(**d)
    return ret

class Location():
    def __init__(self, id=0, name= "A Location", description="Manhattan", neighbors={}):
        self.id = id
        self.name = name
        self.description = description
        self.neighbors = neighbors
    def _neighbor(self, direction):
        if direction in self.neighbors:
            return self.neighbors[direction]
        else:
            return None
    def north(self):
        return self._neighbor('n')
    def south(self):
        return self._neighbor('s')
    def west(self):
        return self._neighbor('w')
    def east(self):
        return self._neighbor('e')
018a452db3640f0139a1dc1be4a21f243b1a03ef
<mask token>


class Location:
    <mask token>

    def _neighbor(self, direction):
        if direction in self.neighbors:
            return self.neighbors[direction]
        else:
            return None

    def north(self):
        return self._neighbor('n')

    def south(self):
        return self._neighbor('s')

    def west(self):
        return self._neighbor('w')
    <mask token>

<mask token>


class Location:

    def __init__(self, id=0, name='A Location', description='Manhattan',
        neighbors={}):
        self.id = id
        self.name = name
        self.description = description
        self.neighbors = neighbors

    def _neighbor(self, direction):
        if direction in self.neighbors:
            return self.neighbors[direction]
        else:
            return None

    def north(self):
        return self._neighbor('n')

    def south(self):
        return self._neighbor('s')

    def west(self):
        return self._neighbor('w')

    def east(self):
        return self._neighbor('e')

<mask token>


def get_location(id):
    ret = None
    with open(str(id) + '.json', 'r') as f:
        jsontext = f.read()
        d = json.loads(jsontext)
        d['id'] = id
        ret = Location(**d)
    return ret


class Location:

    def __init__(self, id=0, name='A Location', description='Manhattan',
        neighbors={}):
        self.id = id
        self.name = name
        self.description = description
        self.neighbors = neighbors

    def _neighbor(self, direction):
        if direction in self.neighbors:
            return self.neighbors[direction]
        else:
            return None

    def north(self):
        return self._neighbor('n')

    def south(self):
        return self._neighbor('s')

    def west(self):
        return self._neighbor('w')

    def east(self):
        return self._neighbor('e')

import json


def get_location(id):
    ret = None
    with open(str(id) + '.json', 'r') as f:
        jsontext = f.read()
        d = json.loads(jsontext)
        d['id'] = id
        ret = Location(**d)
    return ret


class Location:

    def __init__(self, id=0, name='A Location', description='Manhattan',
        neighbors={}):
        self.id = id
        self.name = name
        self.description = description
        self.neighbors = neighbors

    def _neighbor(self, direction):
        if direction in self.neighbors:
            return self.neighbors[direction]
        else:
            return None

    def north(self):
        return self._neighbor('n')

    def south(self):
        return self._neighbor('s')

    def west(self):
        return self._neighbor('w')

    def east(self):
        return self._neighbor('e')

import json

def get_location(id):
    ret = None
    with open(str(id)+".json", "r") as f:
        jsontext = f.read()
        d = json.loads(jsontext)
        d['id'] = id
        ret = Location(**d)
    return ret

class Location():
    def __init__(self, id=0, name= "A Location", description="Manhattan", neighbors={}):
        self.id = id
        self.name = name
        self.description = description
        self.neighbors = neighbors
    def _neighbor(self, direction):
        if direction in self.neighbors:
            return self.neighbors[direction]
        else:
            return None
    def north(self):
        return self._neighbor('n')
    def south(self):
        return self._neighbor('s')
    def west(self):
        return self._neighbor('w')
    def east(self):
        return self._neighbor('e')