Currently, to run this script you will need a modified version of the python-steemlib which can be found here. The changes are already in a pull request so this step should only be temporary.
Why is that pull request necessary? It is easier to just replace the get_witness
call here with get_witness_by_account
.
Thanks for the help! I have updated the script and it no longer requires the modified python-steemlib or the pull request.