api.py: closes interpolation warning message