Referencing #46 on dataverse-broker.
Rather than using a custom set of functions in dataverse_lib.py, adapt the sample app to use a separate client library for the Dataverse API.
A possible candidate is dataverse-client-python, however this library hasn't been updated in 9 months.
I'm open to suggestions as well.