Add python/cython-level way to build function hashtable