There are python scripts which add the data to Splunk , index it, query it etc.
In the similar way can we create a dashboard in Splunk through a python program
You can use REST API to create and update the dashboards. Please check below link for same.
Can we use python script to automate dashboard permissions in splunk?
Yes, You can use Splunk REST Api in python script to change dashboard permissions.