Python Run Async Function Python Pdf Library