I keep getting the search pattern error however if I use other commands it works fine
from netmiko import ConnectHandler olt_name = in