Actually the Python API already does set the horizon and overhead limits using the :Sh and :So commands. So no changes needed in the code. But you need to edit examples/config.py and enter your location, time, ...et.c as well as the above limits under this section:
# Horizon and overhead limits hor_lim = '-10' ovh_lim = '90'