def py2sqlite(data):
    """
    Return an sqlite type name based on the type of the input data

    Can try to support numpy later
    """
    if isinstance(data, int):
        return 'integer'
    elif isinstance(data, float):
        return 'real'
    elif isinstance(data, str):
        return 'text'
    else:
        message = (
            'Error: python data must be one of the following types: int, float, str'
            )
        raise ValueError(message)
