fix readthedocs functions.py doc generation