Hi,
I have experience writing Python code for networking tasks, so what you're asking for is pretty straightforward.
About me: I am a seasoned software industry professional, and have spent the better part of 20 years working for a big-name corporation in the networking domain.
Since I turned to freelancing, my work has been mostly in Python and Ansible. Here are a few of my projects on GitHub:
vnetman/ansible-catalyst: Ansible role that generates configuration for a Cisco IOS-XE Distribution Layer switch
vnetman/ansible-csrange-lookup: Ansible lookup filter written by me to make networking playbooks easier to write
vnetman/hosts3d: My modifications to a C++ program to visualize network hosts abd traffic in 3D
vnetman/netconf-yang-recipes: Example NETCONF/YANG recipes
vnetman/pcap2csv: Generate a CSV from a PCAP file
vnetman/scapy-pcap: Generate multiple TCP streams at specified bitrates