TWAIN library using ctypes bindings