Input: Portals device object.
        Output: The same device object with the device meta
                converted to a python dictionary.

def dictify_device_meta(device_object):
    """ Input: Portals device object.
        Output: The same device object with the device meta
                converted to a python dictionary. """
    try:
        if  isinstance(device_object['info']['description']['meta'], str) or \
            isinstance(device_object['info']['description']['meta'], unicode):
            device_object['info']['description']['meta'] =\
                json.loads(device_object['info']['description']['meta'])
    except ValueError as err:
        print("dictify: {0}".format(err))
    return device_object