output_file = NamedTemporaryFile(prefix='librarian', suffix='.mobi', delete=False)
output_file.close()
subprocess.check_call(['ebook-convert', epub.get_filename(), output_file.name,
output_file = NamedTemporaryFile(prefix='librarian', suffix='.mobi', delete=False)
output_file.close()
subprocess.check_call(['ebook-convert', epub.get_filename(), output_file.name,