'The Kobo supports an encrypted epub refered to as a kepub
Unfortunately Kobo decided to put the files on the device
with no file extension.  I just hope that decision causes
them as much grief as it does me :-)
This has to make a temporary copy of the book files with a
epub extension to allow calibre\'s normal processing to
deal with the file appropriately'

def prepare_addable_books(self, paths):

    for (idx, path) in enumerate(paths):
        if (path.find('kepub') >= 0):
            with closing(lopen(path, 'rb')) as r:
                tf = PersistentTemporaryFile(suffix='.epub')
                shutil.copyfileobj(r, tf)
                paths[idx] = tf.name
    return paths
