Update funcs.py

added fixes to call_func & call_func_with_new_args