Updated funcs.py to fix doc issues