def convert_DBUS_to_python(val):
    '''
    quick hack to convert DBUS types to python types
    '''
    if isinstance(val, (str, six.text_type,)):
        return str(val)
    elif isinstance(val, (int,)):
        return int(val)
    elif isinstance(val, (dict,)):
        return convert_DBUSDictionary_to_dict(val)
    elif isinstance(val, (list,)):
        return convert_DBUSArray_to_tuple(val)
    elif isinstance(val, (tuple,)):
        return val[1]
    elif isinstance(val, (float,)):
        return float(val)
    else:
        raise TypeError("Unknown type '%s': '%r'!" % (str(type(val)),
                                                      repr(val)))