def __mapType(type_):
    """
    Private function to map a type as reported by Qt's meta object to the
    correct Python type.
    
    @param type_ type as reported by Qt
    @type QByteArray or bytes
    @return mapped Python type
    @rtype str
    """
    mapped = bytes(type_).decode()
    mapped = mapped.replace('*', '')
    mapped = mapped.replace('const ', '')
    mapped = mapped.replace('QStringList', 'list').replace('QString', 'str')
    mapped = mapped.replace('double', 'float')
    return mapped
