in addition to the possibility that Pierre mentioned, you could also wrap a api call to /api/users/change_password
in your python script and change the password before you start the scanner if you recreate the sq instance every time as well.
here is an example with curl:
curl -u admin:admin -X POST "http://localhost:9000/api/users/change_password?login=admin&previousPassword=admin&password=newAdminPassword"
hope that helps