'List available facilities for deployment
Retrieve all facilities that a Linode can be deployed in.
:rtype: ``list`` of :class:`NodeLocation`'

def list_locations(self):

    params = {'api_action': 'avail.datacenters'}
    data = self.connection.request(API_ROOT, params=params).objects[0]
    nl = []
    for dc in data:
        country = None
        if ('USA' in dc['LOCATION']):
            country = 'US'
        elif ('UK' in dc['LOCATION']):
            country = 'GB'
        elif ('JP' in dc['LOCATION']):
            country = 'JP'
        else:
            country = '??'
        nl.append(NodeLocation(dc['DATACENTERID'], dc['LOCATION'], country, self))
    return nl
