Automation tool

Dears,

I want to make a tool which have a mix of Ansible and puppet.what should I learn to start with this project?

Thanks in advance.

Well Python would be a good place to start from a language point of view. Why would you want to cross Ansible with Puppet?