Simple Python script to manage Ansible inventory in mySQL