def lookup_type(storable_type):
    """
    Look for the Python type that corresponds to a storable type name.
    """
    if storable_type.startswith('Python'):
        _, module_name = storable_type.split('.', 1)
    else:
        module_name = storable_type
    #type_name, module_name = \
    names = [ _name[::-1] for _name in module_name[::-1].split('.', 1) ]
    if names[1:]:
        type_name, module_name = names
    else:
        type_name = names[0]
        return eval(type_name)
    try:
        module = importlib.import_module(module_name)
        python_type = getattr(module, type_name)
    except (ImportError, AttributeError):
        python_type = None
    return python_type
Look for the Python type that corresponds to a storable type name.