Update funcs.py

added licencing