Are you able to time inside of the lines?
The most straight forward way might be to download the library and adding timing profile lines to see which part of the process took the longest time.
This How do I profile a Python script? might be helpful for you.