python3 does not have func_dict