Suggest you use Python2 and virtualenv
virtualenv .
source bin/activate
Update pip and install requirements
pip install --upgrade pip
pip install -r requirements.txt
Ansible playbook and templates based on examples from
https://www.agileintegratedsolutions.com/how-to-automate-your-network-using-ansible-and-napalm-part-1/