How to create a Kibana Visualisation with python script?

We have import/export API's available if you're just trying to automate setup.

Import: https://www.elastic.co/guide/en/kibana/current/saved-objects-api-import.html
Export: https://www.elastic.co/guide/en/kibana/current/saved-objects-api-export.html