Please use the tsdbapi Python package to download time series data from KOF instead.
Python API Wrapper for the KOF Datenservice API
should add to this section a bit, to give new users a quick start.
import kofdata as kof
kof.get_quota('your_api_key')