Kobo API & Beyond

Welcome to the community, @me216! Maybe this post discussed previously should help you with how a script is written in python:

Another one:

And this one too: